From: Theodore Ts'o Date: Mon, 29 Sep 2014 02:52:23 +0000 (+1000) Subject: ext4: speed up _require_ext4_bigalloc and _require_ext4_mkfs_bigalloc X-Git-Tag: v2022.05.01~3069 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=1a2d0629396820c7e1c46228a869051508fe4bc6;p=users%2Fhch%2Fxfstests-dev.git ext4: speed up _require_ext4_bigalloc and _require_ext4_mkfs_bigalloc We don't need to make a full-sized file system in order to test whether "mkfs.ext4 -O bigalloc" works. Signed-off-by: Theodore Ts'o Signed-off-by: Dave Chinner --- diff --git a/common/rc b/common/rc index 35d7d5dcc..d49137c26 100644 --- a/common/rc +++ b/common/rc @@ -1267,7 +1267,7 @@ _require_xfs_crc() # _require_ext4_mkfs_bigalloc() { - _scratch_mkfs_ext4 -O bigalloc >/dev/null 2>&1 \ + $MKFS_EXT4_PROG -F -O bigalloc -n $SCRATCH_DEV 200k >/dev/null 2>&1 \ || _notrun "mkfs.ext4 doesn't have bigalloc feature" } @@ -1275,7 +1275,7 @@ _require_ext4_mkfs_bigalloc() # _require_ext4_bigalloc() { - _scratch_mkfs_ext4 -O bigalloc >/dev/null 2>&1 + $MKFS_EXT4_PROG -F -O bigalloc $SCRATCH_DEV 200k >/dev/null 2>&1 _scratch_mount >/dev/null 2>&1 \ || _notrun "Ext4 kernel doesn't support bigalloc feature" umount $SCRATCH_MNT