mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-26 08:02:21 +00:00
btrfs-progs: tests: Use '-t btrfs' mount option in tests
Without it, mount (at least from util-linux 2.20.1) tries (and fails) to mount some filesystems as NTFS. Signed-off-by: Adam Buchbinder <abuchbinder@google.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
18b519e694
commit
5c2cf48a4c
@ -387,7 +387,7 @@ run_check_mount_test_dev()
|
|||||||
_fail "Invalid \$TEST_MNT: $TEST_MNT"
|
_fail "Invalid \$TEST_MNT: $TEST_MNT"
|
||||||
}
|
}
|
||||||
|
|
||||||
run_check $SUDO_HELPER mount $loop_opt "$@" "$TEST_DEV" "$TEST_MNT"
|
run_check $SUDO_HELPER mount -t btrfs $loop_opt "$@" "$TEST_DEV" "$TEST_MNT"
|
||||||
}
|
}
|
||||||
|
|
||||||
run_check_umount_test_dev()
|
run_check_umount_test_dev()
|
||||||
|
@ -90,7 +90,7 @@ check_inode()
|
|||||||
check_leaf_corrupt_no_data_ext()
|
check_leaf_corrupt_no_data_ext()
|
||||||
{
|
{
|
||||||
image=$1
|
image=$1
|
||||||
$SUDO_HELPER mount -o loop "$image" -o ro "$TEST_MNT"
|
$SUDO_HELPER mount -o loop -t btrfs "$image" -o ro "$TEST_MNT"
|
||||||
|
|
||||||
i=0
|
i=0
|
||||||
while [ $i -lt ${#leaf_no_data_ext_list[@]} ]; do
|
while [ $i -lt ${#leaf_no_data_ext_list[@]} ]; do
|
||||||
|
Loading…
Reference in New Issue
Block a user