Btrfs-progs: fix resolving of loop devices
authorNirbheek Chauhan <nirbheek.chauhan@collabora.co.uk>
Sun, 20 Jan 2013 21:04:07 +0000 (16:04 -0500)
committerDavid Sterba <dsterba@suse.cz>
Mon, 21 Jan 2013 17:28:00 +0000 (18:28 +0100)
commitabdb0ced0123d423e9ad285a7e9e351fff4732fd
treed656aecc400b3f8751bc9fe942359115094fb986
parentc88c2f52fed9554306036385c5c15c012ba49629
Btrfs-progs: fix resolving of loop devices

The LOOP_GET_STATUS ioctl truncates filenames to 64 characters. We should get
the backing file for a given loop device from /sys/. This is how losetup does it
as well.

Signed-off-by: Nirbheek Chauhan <nirbheek.chauhan@collabora.co.uk>
Signed-off-by: Gene Czarcinski <gene@czarc.net>
Tested-By: Hector Oron <hector.oron@collabora.co.uk>
utils.c