Skip to contentSkip to conversation

block/loop: add documentation for sysfs interface

PATCH Applied Aishwarya Pant 2 participants 2 messages Feb 17, 2018 – Feb 23, 2018 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 block/loop: add documentation for sysfs interface

Documentation has been compiled from git logs and by reading through code.

---
For drivers/block/loop.c, I don't see any maintainers or mailing lists except for LKML. I am guessing linux-block mailing list should be okay.

Changes in v2:
- Add [email protected] to the recipient list.

 Documentation/ABI/testing/sysfs-block-loop | 50 ++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-block-loop
Documentation/ABI/testing/sysfs-block-loop new file +50 -0
new file mode 100644
index 000000000000..627f4eb87286
@@ -0,0 +1,50 @@
+What:		/sys/block/loopX/loop/autoclear
+Date:		Aug, 2010
+KernelVersion:	v2.6.37
+Contact:	[email protected]
+Description:
+		(RO) Shows if the device is in autoclear mode or not ( "1" or
+		"0"). Autoclear (if set) indicates that the loopback device will
+		self-distruct after last close.
+
+What:		/sys/block/loopX/loop/backing_file
+Date:		Aug, 2010
+KernelVersion:	v2.6.37
+Contact:	[email protected]
+Description:
+		(RO) The path of the backing file that the loop device maps its
+		data blocks to.
+
+What:		/sys/block/loopX/loop/offset
+Date:		Aug, 2010
+KernelVersion:	v2.6.37
+Contact:	[email protected]
+Description:
+		(RO) Start offset (in bytes).
+
+What:		/sys/block/loopX/loop/sizelimit
+Date:		Aug, 2010
+KernelVersion:	v2.6.37
+Contact:	[email protected]
+Description:
+		(RO) The size (in bytes) that the block device maps, starting
+		from the offset.
+
+What:		/sys/block/loopX/loop/partscan
+Date:		Aug, 2011
+KernelVersion:	v3.10
+Contact:	[email protected]
+Description:
+		(RO) Shows if automatic partition scanning is enabled for the
+		device or not ("1" or "0"). This can be requested individually
+		per loop device during its setup by setting LO_FLAGS_PARTSCAN in
+		in the ioctl request. By default, no partition tables are
+		scanned.
+
+What:		/sys/block/loopX/loop/dio
+Date:		Aug, 2015
+KernelVersion:	v4.10
+Contact:	[email protected]
+Description:
+		(RO) Shows if direct IO is being used to access backing file or
+		not ("1 or "0").
Signature · 1 line
2.16.1
#1 lore raw
Quoted 10 lines · On Sat, 17 Feb 2018 11:43:04 +0530 Aishwarya Pant <[email protected]> wrote:

Documentation has been compiled from git logs and by reading through code.

---
For drivers/block/loop.c, I don't see any maintainers or mailing lists except for LKML. I am guessing linux-block mailing list should be okay.

Changes in v2:
- Add [email protected] to the recipient list.

Applied to the docs tree, thanks.

jon