mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
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 <tytso@mit.edu> Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
committed by
Dave Chinner
parent
c50db10dfb
commit
1a2d062939
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user