diff options
author | Karel Zak | 2010-12-01 14:04:35 +0100 |
---|---|---|
committer | Karel Zak | 2010-12-01 14:04:35 +0100 |
commit | b61e939013282d8da2fbc2dc60c2cb4e58b8ab17 (patch) | |
tree | 12ccaa865bde2b30c138bcd974f530979404cb31 /include/mbsalign.h | |
parent | lscpu: use GPLv2+ (diff) | |
download | kernel-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 'include/mbsalign.h')
0 files changed, 0 insertions, 0 deletions