summaryrefslogtreecommitdiffstats
path: root/TODO
diff options
context:
space:
mode:
authorKarel Zak2010-12-01 14:04:35 +0100
committerKarel Zak2010-12-01 14:04:35 +0100
commitb61e939013282d8da2fbc2dc60c2cb4e58b8ab17 (patch)
tree12ccaa865bde2b30c138bcd974f530979404cb31 /TODO
parentlscpu: use GPLv2+ (diff)
downloadkernel-qcow2-util-linux-b61e939013282d8da2fbc2dc60c2cb4e58b8ab17.tar.gz
kernel-qcow2-util-linux-b61e939013282d8da2fbc2dc60c2cb4e58b8ab17.tar.xz
kernel-qcow2-util-linux-b61e939013282d8da2fbc2dc60c2cb4e58b8ab17.zip
losetup: use /sys/dev/block/.../loop/backing_file
The basic loopdev attributes are available in sysfs since kernel 2.6.37. This patch uses the backing_file attribute from sysfs for very long filenames (the LOOP_GET_STATUS ioctl uses only 64 bytes for the filename). old version: # losetup -a /dev/loop0: [0804]:12865322 (/home/images/filesystems/this_is_really_really_long_directory_*) new version: # losetup -a /dev/loop0: [0804]:12865322 (/home/images/filesystems/this_is_really_really_long_directory_name/ext2.img) Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'TODO')
-rw-r--r--TODO20
1 files changed, 20 insertions, 0 deletions
diff --git a/TODO b/TODO
index 99a651db6..ecd67c67b 100644
--- a/TODO
+++ b/TODO
@@ -4,6 +4,25 @@ login-utils:
- clean up error codes
- use err() and warn() macros rather than fprintf(stderr, ...)
+
+losetup
+-------
+
+ - don't use ioclts if sysfs supports loop attributes (since 2.6.37,
+ block/loopN/loop/* files)
+
+ - don't open loopdev in looplist_next(), check if /sys/block/loopN/loop
+ exists and returns ll.name rather than file descriptor
+
+ - add sysfs based version of show_loop() and use it for non-root users
+
+sysfs
+-----
+
+ - add lib/sysfs.c with functions that read block device attributes from /sys.
+ For more details see devno.c from libblkid, lsblk.c and lomount.c.
+
+
libblkid
--------
@@ -17,6 +36,7 @@ libblkid
- add support for dasd PT (used for example on s390)
+
blkid(8)
-------