From: Omar Sandoval Date: Thu, 12 Apr 2018 05:07:29 +0000 (-0700) Subject: common/rc: raise btrfs mixed mode threshold to 1GB X-Git-Tag: v2022.05.01~1596 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=d4da414a9a9df9617035e5ce2c66252fba20df93;p=xfstests-dev.git common/rc: raise btrfs mixed mode threshold to 1GB 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 Reviewed-by: Dave Chinner Signed-off-by: Eryu Guan --- diff --git a/common/rc b/common/rc index 622afd6f..366489bb 100644 --- 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)