mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git
synced 2024-11-24 20:54:17 +08:00
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:
parent
2192bd5cfc
commit
a6e5cdef43
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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() {
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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()
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -9,7 +9,7 @@ check_prereq mkfs.btrfs
|
||||
check_prereq btrfs
|
||||
|
||||
setup_root_helper
|
||||
prepare_test_dev 1g
|
||||
prepare_test_dev
|
||||
|
||||
here=`pwd`
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user