summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFlorian Margaine <florian@platform.sh>2015-11-13 18:09:05 +0100
committerDavid Sterba <dsterba@suse.com>2015-11-16 14:23:46 +0100
commit0cf3b78f404b01b6e400fac6eb29890fc430b20e (patch)
tree9d0162a9aeac063ca3fd30ac00ac4350aa88b146 /tests
parent214308422933601138ee484e81dade47edcb442c (diff)
btrfs-progs: Fix partitioned loop devices resolving
When using partitions on a loop device, the device's name can be e.g. /dev/loop0p1 or similar, and no relevant entry exists in the /sys filesystem, so the current resolve_loop_device function fails. Instead of using string functions to extract the device name and reading this file, this patch uses the loop device API through ioctl to get the correct backing file. Signed-off-by: Florian Margaine <florian@platform.sh> [ changed checks of error values from open and ioctl ] Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions