summaryrefslogtreecommitdiff
path: root/tests/mkfs-tests/002-no-force-mixed-on-small-volume/test.sh
blob: 855fbd184f5b9c5e8861b4f72529b257f0724b0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
#
# Verify that we do not force mixed block groups on small volumes anymore

source $TOP/tests/common

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"