Skip to contentSkip to conversation

Documentation: ABI: mtd: describe "offset" more precisely

PATCH Applied Rafał Miłecki 2 participants 2 messages Jun 25, 2017 – Jul 13, 2017 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Documentation: ABI: mtd: describe "offset" more precisely

From: Rafał Miłecki <[email protected]>

So far Linux supported only two levels of MTD devices so we didn't need a very precise description for this sysfs file. With commit 97519dc52b44a ("mtd: partitions: add support for subpartitions") there is support for a tree structure so we should have more precise description. Using "parent" and "flash device" makes it more accurate.

---
 Documentation/ABI/testing/sysfs-class-mtd | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Documentation/ABI/testing/sysfs-class-mtd +3 -3
index 3b5c3bca9186..f34e592301d1 100644
@@ -229,6 +229,6 @@ KernelVersion:	4.1
 Contact:	[email protected]
 Description:
 		For a partition, the offset of that partition from the start
-		of the master device in bytes. This attribute is absent on
-		main devices, so it can be used to distinguish between
-		partitions and devices that aren't partitions.
+		of the parent (another partition or a flash device) in bytes.
+		This attribute is absent on flash devices, so it can be used
+		to distinguish them from partitions.
Signature · 1 line
2.11.0
Applied
#1 lore raw
Quoted 9 lines · Rafał Miłecki

From: Rafał Miłecki <[email protected]>

So far Linux supported only two levels of MTD devices so we didn't need a very precise description for this sysfs file. With commit 97519dc52b44a ("mtd: partitions: add support for subpartitions") there is support for a tree structure so we should have more precise description. Using "parent" and "flash device" makes it more accurate.

Applied to linux-mtd.git