Skip to contentSkip to conversation

docs: sysfs-block: document size sysfs entry

PATCH Superseded Tokunori Ikegami 2 participants 3 messages Apr 5, 2024 Block layer

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs: sysfs-block: document size sysfs entry

Document it since /sys/block/<disk>/size is undocumented.

---
 Documentation/ABI/stable/sysfs-block | 7 +++++++
 1 file changed, 7 insertions(+)
Documentation/ABI/stable/sysfs-block +7 -0
index 7718ed34777e..881049419054 100644
@@ -707,6 +707,13 @@ Description:
 		zoned will report "none".
 
 
+What:		/sys/block/<disk>/size
+Date:		April 2024
+Contact:	[email protected]
+Description:
+		[RO] This is the 512 bytes size sector number.
+
+
 What:		/sys/block/<disk>/stat
 Date:		February 2008
 Contact:	Jerome Marchand <[email protected]>
Signature · 1 line
2.40.1
#1 lore raw
Quoted 12 lines · Tokunori Ikegami

Document it since /sys/block/<disk>/size is undocumented.

---
  Documentation/ABI/stable/sysfs-block | 7 +++++++
  1 file changed, 7 insertions(+)
Documentation/ABI/stable/sysfs-block +0 -0
index 7718ed34777e..881049419054 100644

Documentation/ABI/stable/sysfs-block Description: · line 714

Quoted 8 lines
Documentation/ABI/stable/sysfs-block +5 -0
@@ -707,6 +707,13 @@ Description:
  		zoned will report "none".
 
 
+What:		/sys/block/<disk>/size
+Date:		April 2024
+Contact:	[email protected]
+Description:
+		[RO] This is the 512 bytes size sector number.

What is a "sector number"? Please change the description into something like the following:

[RO] Size of the block device in units of 512 bytes.

Thanks,

Bart.

#2 lore raw
Quoted 22 lines · Bart Van Assche
Quoted 14 lines · Tokunori Ikegami

Document it since /sys/block/<disk>/size is undocumented.

---
  Documentation/ABI/stable/sysfs-block | 7 +++++++

  1 file changed, 7 insertions(+)
Documentation/ABI/stable/sysfs-block +0 -0
index 7718ed34777e..881049419054 100644
@@ -707,6 +707,13 @@ Description:

          zoned will report "none".
    +What:        /sys/block/<disk>/size

Documentation/ABI/stable/sysfs-block Description: · line 714

Quoted 4 lines
Documentation/ABI/stable/sysfs-block +4 -0
+Date:        April 2024
+Contact:    [email protected]
+Description:
+        [RO] This is the 512 bytes size sector number.

What is a "sector number"? Please change the description into something like the following:

Quoted 1 line

  [RO] Size of the block device in units of 512 bytes.

Thanks for your suggestion. Just fixed by the version 2 patch as mentioned.

Quoted 5 lines

Thanks,

Bart.