btrfs-progs: tests: Add -o loop to fsck-tests/012-leaf-corruption

To avoid following mount error in test:
  mount: /root/btrfs/progs/tests/fsck-tests/012-leaf-corruption/test.img
  is not a block device (maybe try `-o loop'?)

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
Zhao Lei 2015-07-27 21:01:50 +08:00 committed by David Sterba
parent c11eeecd78
commit 9e99b99fa0

View File

@ -86,7 +86,7 @@ check_leaf_corrupt_no_data_ext()
{
image=$1
mkdir -p $TEST_MNT || _fail "failed to create mount point"
$SUDO_HELPER mount $image -o ro $TEST_MNT
$SUDO_HELPER mount -o loop $image -o ro $TEST_MNT
i=0
while [ $i -lt ${#leaf_no_data_ext_list[@]} ]; do