diff options
author | David Sterba <dsterba@suse.com> | 2015-10-19 18:12:35 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2015-11-02 09:35:05 +0100 |
commit | 1e92cd0d9bc0d9ed8efce639cef0b552901c2cb4 (patch) | |
tree | 6d5e0fc75ec1c9ec09dcb2fca8954e0feb44a7d2 /tests/mkfs-tests | |
parent | ed54f0eee38435183015cac38f0c1fc1bf365556 (diff) |
btrfs-progs: tests: add 002-no-force-mixed-on-small-volume
Verify that we do not force mixed block groups on small volumes anymore.
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tests/mkfs-tests')
-rwxr-xr-x | tests/mkfs-tests/002-no-force-mixed-on-small-volume/test.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/mkfs-tests/002-no-force-mixed-on-small-volume/test.sh b/tests/mkfs-tests/002-no-force-mixed-on-small-volume/test.sh new file mode 100755 index 00000000..007a0eb9 --- /dev/null +++ b/tests/mkfs-tests/002-no-force-mixed-on-small-volume/test.sh @@ -0,0 +1,13 @@ +#!/bin/bash +# +# Verify that we do not force mixed block groups on small volumes anymore + +source $TOP/tests/common + +check_prereq btrfs-show-super +check_prereq mkfs.btrfs +setup_root_helper + +run_check truncate -s 512M $IMAGE +mixed=$(run_check_stdout $TOP/mkfs.btrfs -n 64k -f $IMAGE | egrep 'Data|Metadata') +echo "$mixed" | grep -q -v 'Data+Metadata:' || _fail "unexpected: created a mixed-bg filesystem" |