btrfs-progs: tests: add 002-balance-full-no-filters

Coverage of new balance option --full-balance.

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2016-05-02 14:59:48 +02:00
parent ec4f8776fd
commit 0121270a79
1 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,21 @@
#!/bin/bash
#
# coverage of balance --full-balance
source $TOP/tests/common
check_prereq mkfs.btrfs
check_prereq btrfs
setup_root_helper
prepare_test_dev 2g
run_check $TOP/mkfs.btrfs -f $IMAGE
run_check_mount_test_dev
run_check $SUDO_HELPER $TOP/btrfs balance start --full-balance $TEST_MNT
run_check $SUDO_HELPER $TOP/btrfs balance start $TEST_MNT
run_check $SUDO_HELPER $TOP/btrfs balance --full-balance $TEST_MNT
run_check $SUDO_HELPER $TOP/btrfs balance $TEST_MNT
run_check_umount_test_dev