From 9e99b99fa05036b09f11fc7a1d64c4dedd6b2ced Mon Sep 17 00:00:00 2001 From: Zhao Lei Date: Mon, 27 Jul 2015 21:01:50 +0800 Subject: 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 Signed-off-by: David Sterba --- tests/fsck-tests/012-leaf-corruption/test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/fsck-tests') diff --git a/tests/fsck-tests/012-leaf-corruption/test.sh b/tests/fsck-tests/012-leaf-corruption/test.sh index 98e31856..f8701ad7 100755 --- a/tests/fsck-tests/012-leaf-corruption/test.sh +++ b/tests/fsck-tests/012-leaf-corruption/test.sh @@ -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 -- cgit v1.2.3