]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
common/rc: raise btrfs mixed mode threshold to 1GB
authorOmar Sandoval <osandov@fb.com>
Thu, 12 Apr 2018 05:07:29 +0000 (22:07 -0700)
committerEryu Guan <guaneryu@gmail.com>
Sun, 22 Apr 2018 10:44:17 +0000 (18:44 +0800)
generic/427 creates a 256 MB filesystem and then writes a 200 MB file,
which fails on Btrfs if mixed mode is not enabled. Raise the threshold
to 1GB, which is where we typically recommend mixed mode.

Signed-off-by: Omar Sandoval <osandov@fb.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
common/rc

index 622afd6fe5965b0b29d6a4b2fc06ac5a5bafb5b9..366489bbd2b1b4b702f0104f6330fc013e4ae364 100644 (file)
--- a/common/rc
+++ b/common/rc
@@ -999,7 +999,7 @@ _scratch_mkfs_sized()
        ;;
     btrfs)
        local mixed_opt=
-       (( fssize <= 100 * 1024 * 1024 )) && mixed_opt='--mixed'
+       (( fssize <= 1024 * 1024 * 1024 )) && mixed_opt='--mixed'
        $MKFS_BTRFS_PROG $MKFS_OPTIONS $mixed_opt -b $fssize $SCRATCH_DEV
        ;;
     jfs)