diff options
author | Dan Ehrenberg <dehrenberg@chromium.org> | 2015-04-02 18:15:11 -0400 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2015-04-05 20:44:02 -0400 |
commit | a62c24d75529118d10c45350c3b75715d52ff574 (patch) | |
tree | 6c18ffa557b84ff94dd6dedce302a556766decf7 /Documentation/ABI | |
parent | 727dc612c46b8f3858537ea23805b3e897cf127e (diff) |
mtd: part: Add sysfs variable for offset of partition
This patch makes a sysfs variable called 'offset' on each partition
which contains the offset in bytes from the beginning of the master
device that the partition starts.
Signed-off-by: Dan Ehrenberg <dehrenberg@chromium.org>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'Documentation/ABI')
-rw-r--r-- | Documentation/ABI/testing/sysfs-class-mtd | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Documentation/ABI/testing/sysfs-class-mtd b/Documentation/ABI/testing/sysfs-class-mtd index 76ee192f80a0..3b5c3bca9186 100644 --- a/Documentation/ABI/testing/sysfs-class-mtd +++ b/Documentation/ABI/testing/sysfs-class-mtd | |||
@@ -222,3 +222,13 @@ Description: | |||
222 | The number of blocks that are marked as reserved, if any, in | 222 | The number of blocks that are marked as reserved, if any, in |
223 | this partition. These are typically used to store the in-flash | 223 | this partition. These are typically used to store the in-flash |
224 | bad block table (BBT). | 224 | bad block table (BBT). |
225 | |||
226 | What: /sys/class/mtd/mtdX/offset | ||
227 | Date: March 2015 | ||
228 | KernelVersion: 4.1 | ||
229 | Contact: linux-mtd@lists.infradead.org | ||
230 | Description: | ||
231 | For a partition, the offset of that partition from the start | ||
232 | of the master device in bytes. This attribute is absent on | ||
233 | main devices, so it can be used to distinguish between | ||
234 | partitions and devices that aren't partitions. | ||