From: Milan Broz Date: Mon, 23 Aug 2010 13:16:00 +0000 (+0200) Subject: loop: add some basic read-only sysfs attributes X-Git-Tag: v2.6.37-rc1~167^2~94 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee86273062cbb310665fe49e1f1937d2cf85b0b9;p=pandora-kernel.git 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 Signed-off-by: Jens Axboe --- Reading git-diff-tree failed