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>
master
Adam Buchbinder 2017-07-12 13:05:22 -07:00 committed by David Sterba
parent 18b519e694
commit 5c2cf48a4c
2 changed files with 2 additions and 2 deletions

View File

@ -387,7 +387,7 @@ run_check_mount_test_dev()
_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()

View File

@ -90,7 +90,7 @@ check_inode()
check_leaf_corrupt_no_data_ext()
{
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
while [ $i -lt ${#leaf_no_data_ext_list[@]} ]; do