Linux-api Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH] block: add start and size to ABI documentation
@ 2015-12-26 18:36 Peter Wu
  0 siblings, 0 replies; only message in thread
From: Peter Wu @ 2015-12-26 18:36 UTC (permalink / raw)
  To: Jens Axboe, linux-block, linux-kernel, linux-api, Al Viro

Document the start and size fields (which were introduced in commit
v2.5.42-215-gb288f6a) to avoid guesswork on the unit.

Signed-off-by: Peter Wu <peter@lekensteyn.nl>
---
Hi,

As the meaning has not changed for over 13 years, I would like to
formalize these attributes such that users can rely on it[1][2].
The sector definition was inspired by the block/stat.txt documentation.

By the way, the ABI/README document is ambiguous on the meaning of
"Date", is it the creation date of the documentation entry or the
creation of the filesystem interface? I have chosen the latter here.

Kind regards,
Peter

 [1]: https://lkml.kernel.org/r/201012011729.18661.lists@egidy.de
 [2]: https://unix.stackexchange.com/questions/52215/determine-the-size-of-a-block-device#comment112867_52219
---
 Documentation/ABI/testing/sysfs-block | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/Documentation/ABI/testing/sysfs-block b/Documentation/ABI/testing/sysfs-block
index 71d184d..b85a266 100644
--- a/Documentation/ABI/testing/sysfs-block
+++ b/Documentation/ABI/testing/sysfs-block
@@ -235,3 +235,20 @@ Description:
 		write_same_max_bytes is 0, write same is not supported
 		by the device.
 
+What:		/sys/block/<disk>/<partition>/start
+Date:		October 2002
+Contact:	linux-block@vger.kernel.org
+Kernel Version:	2.5.43
+Description:
+		Starting position of the partition within the disk.
+		Measured in standard UNIX 512-byte sectors (not a
+		device-specific block size).
+
+What:		/sys/block/<disk>/<partition>/size
+Date:		October 2002
+Contact:	linux-block@vger.kernel.org
+Kernel Version:	2.5.43
+Description:
+		Size of the partition in standard UNIX 512-byte sectors
+		(not a device-specific block size).
+
-- 
2.6.4

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-26 18:36 [PATCH] block: add start and size to ABI documentation Peter Wu

Linux-api Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-api/0 linux-api/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-api linux-api/ https://lore.kernel.org/linux-api \
		linux-api@vger.kernel.org
	public-inbox-index linux-api

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-api


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git