btrfs-progs: tests: don't pass size to prepare_test_dev if not necessary

Most tests don't need a specific size of the test device, the default
2GiB should be fine.

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2017-10-27 15:50:34 +02:00
parent 2192bd5cfc
commit a6e5cdef43
23 changed files with 23 additions and 23 deletions

View File

@ -8,7 +8,7 @@ check_prereq mkfs.btrfs
check_prereq btrfs
setup_root_helper
prepare_test_dev 2g
prepare_test_dev
run_check "$TOP/mkfs.btrfs" -f "$TEST_DEV"
run_check_mount_test_dev

View File

@ -8,7 +8,7 @@ check_prereq mkfs.btrfs
check_prereq btrfs
setup_root_helper
prepare_test_dev 2g
prepare_test_dev
run_check "$TOP/mkfs.btrfs" -f "$TEST_DEV"
run_check_mount_test_dev

View File

@ -8,7 +8,7 @@ check_prereq mkfs.btrfs
check_prereq btrfs
setup_root_helper
prepare_test_dev 2g
prepare_test_dev
run_check "$TOP/mkfs.btrfs" -f "$TEST_DEV"
run_check_mount_test_dev

View File

@ -4,7 +4,7 @@ source "$TOP/tests/common"
source "$TOP/tests/common.convert"
setup_root_helper
prepare_test_dev 512M
prepare_test_dev
check_prereq btrfs-convert
check_global_prereq mke2fs

View File

@ -4,7 +4,7 @@ source "$TOP/tests/common"
source "$TOP/tests/common.convert"
setup_root_helper
prepare_test_dev 512M
prepare_test_dev
check_prereq btrfs-convert
check_global_prereq mke2fs

View File

@ -4,7 +4,7 @@ source "$TOP/tests/common"
source "$TOP/tests/common.convert"
setup_root_helper
prepare_test_dev 512M
prepare_test_dev
check_prereq btrfs-convert
check_global_prereq mke2fs

View File

@ -18,7 +18,7 @@ check_global_prereq e2fsck
check_global_prereq xzcat
setup_root_helper
prepare_test_dev 512M
prepare_test_dev
# override common function
function check_image() {

View File

@ -6,7 +6,7 @@ source "$TOP/tests/common"
source "$TOP/tests/common.convert"
setup_root_helper
prepare_test_dev 512M
prepare_test_dev
check_prereq btrfs-convert
check_global_prereq mke2fs

View File

@ -9,7 +9,7 @@ source "$TOP/tests/common"
source "$TOP/tests/common.convert"
setup_root_helper
prepare_test_dev 512M
prepare_test_dev
check_prereq btrfs-convert
check_global_prereq mke2fs

View File

@ -5,7 +5,7 @@ source "$TOP/tests/common"
source "$TOP/tests/common.convert"
setup_root_helper
prepare_test_dev 512M
prepare_test_dev
check_prereq btrfs-convert
check_global_prereq mke2fs

View File

@ -5,7 +5,7 @@ source "$TOP/tests/common"
source "$TOP/tests/common.convert"
setup_root_helper
prepare_test_dev 512M
prepare_test_dev
check_prereq btrfs-convert
check_global_prereq mke2fs

View File

@ -5,7 +5,7 @@ source "$TOP/tests/common"
source "$TOP/tests/common.convert"
setup_root_helper
prepare_test_dev 512M
prepare_test_dev
check_prereq btrfs-convert
check_global_prereq mke2fs
check_global_prereq lsattr

View File

@ -8,7 +8,7 @@ if ! check_kernel_support_reiserfs >/dev/null; then
fi
setup_root_helper
prepare_test_dev 512M
prepare_test_dev
check_prereq btrfs-convert
check_global_prereq mkreiserfs

View File

@ -9,7 +9,7 @@ if ! check_kernel_support_reiserfs >/dev/null; then
fi
setup_root_helper
prepare_test_dev 512M
prepare_test_dev
check_prereq btrfs-convert
check_global_prereq mkreiserfs

View File

@ -13,7 +13,7 @@ if ! check_kernel_support_reiserfs >/dev/null; then
fi
setup_root_helper
prepare_test_dev 512M
prepare_test_dev
check_prereq btrfs-convert
check_global_prereq mkreiserfs

View File

@ -9,7 +9,7 @@ if ! check_kernel_support_reiserfs >/dev/null; then
fi
setup_root_helper
prepare_test_dev 512M
prepare_test_dev
check_prereq btrfs-convert
check_global_prereq mkreiserfs
check_global_prereq chattr

View File

@ -14,7 +14,7 @@ if ! check_kernel_support_reiserfs >/dev/null; then
fi
setup_root_helper
prepare_test_dev 512M
prepare_test_dev
check_prereq btrfs-convert
check_global_prereq md5sum
check_global_prereq mkreiserfs

View File

@ -7,7 +7,7 @@ check_prereq mkfs.btrfs
check_prereq btrfs
setup_root_helper
prepare_test_dev 1G
prepare_test_dev
# test whether fsck can rebuild a corrupted extent tree
test_extent_tree_rebuild()

View File

@ -7,7 +7,7 @@ check_prereq btrfs
check_prereq mkfs.btrfs
setup_root_helper
prepare_test_dev 1G
prepare_test_dev
run_check $SUDO_HELPER "$TOP/mkfs.btrfs" -f "$TEST_DEV"
run_check_mount_test_dev

View File

@ -6,7 +6,7 @@ source $TOP/tests/common
check_prereq btrfs-convert
mkfs.ext4 -V &>/dev/null || _not_run "mkfs.ext4 not found"
prepare_test_dev 1G
prepare_test_dev
for ((i = 0; i < 20; i++)); do
echo "loop $i" >>$RESULTS

View File

@ -10,7 +10,7 @@ check_prereq btrfs
setup_root_helper
prepare_test_dev 1g
prepare_test_dev
run_check "$TOP/mkfs.btrfs" -f "$TEST_DEV"
run_check_mount_test_dev

View File

@ -9,7 +9,7 @@ check_prereq btrfs
setup_root_helper
prepare_test_dev 1g
prepare_test_dev
run_check "$TOP/mkfs.btrfs" -f "$TEST_DEV"
run_check_mount_test_dev

View File

@ -9,7 +9,7 @@ check_prereq mkfs.btrfs
check_prereq btrfs
setup_root_helper
prepare_test_dev 1g
prepare_test_dev
here=`pwd`