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>
This commit is contained in:
David Sterba 2015-10-19 18:12:35 +02:00
parent ed54f0eee3
commit 1e92cd0d9b
1 changed files with 13 additions and 0 deletions

View File

@ -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"