Searched hist:ee86273062cbb310665fe49e1f1937d2cf85b0b9 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/block/ |
H A D | loop.c | diff 51a0bb0c2e614659132fce272c8a1815a12c5c2a Wed Oct 27 20:51:30 CDT 2010 Milan Broz <mbroz@redhat.com> loop: Properly clear sysfs in autoclear mode
In autoclear mode bdev is NULL but the sysfs entry should be destroyed otherwise this warning appears:
WARNING: at fs/sysfs/dir.c:451 sysfs_add_one+0x82/0x95() sysfs: cannot create duplicate filename '/devices/virtual/block/loop0/loop'
Fixes commit ee86273062cbb310665fe49e1f1937d2cf85b0b9
Signed-off-by: Milan Broz <mbroz@redhat.com> Signed-off-by: Jens Axboe <jaxboe@fusionio.com> diff ee86273062cbb310665fe49e1f1937d2cf85b0b9 Mon Aug 23 08:16:00 CDT 2010 Milan Broz <mbroz@redhat.com> loop: add some basic read-only sysfs attributes
Create /sys/block/loopX/loop directory and provide these attributes: - backing_file - autoclear - offset - sizelimit
This loop directory is present only if loop device is configured.
To be used in util-linux-ng (and possibly elsewhere like udev rules) where code need to get loop attributes from kernel (and not store duplicate info in userspace).
Moreover loop ioctls are not even able to provide full backing file info because of buffer limits.
Signed-off-by: Milan Broz <mbroz@redhat.com> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
|