mirror of
https://github.com/kdave/btrfs-progs
synced 2025-05-06 18:07:56 +00:00
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:
parent
c11eeecd78
commit
9e99b99fa0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user