]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
ext4: the _require checks for bigalloc need a larger fs size
authorVishal Verma <vishal.l.verma@linux.intel.com>
Fri, 12 Dec 2014 00:26:56 +0000 (11:26 +1100)
committerDave Chinner <david@fromorbit.com>
Fri, 12 Dec 2014 00:26:56 +0000 (11:26 +1100)
_require_ext4_bigalloc and _require_ext4_mkfs_bigalloc create a
200k fs. DAX (as XIP before it) relies on a fs block size ==
system page size; ie 4k for us.  With a 200k fs size limit,
mkfs refuses to create a filesystem with a 4k block size, so
the check fails, but for a bogus reason.
Increasing the fs size to 512m allows mkfs to create a filesystem
with 4k block size, so the test passes.

Signed-off-by: Vishal Verma <vishal.l.verma@linux.intel.com>
Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
common/rc

index 68a35138e72e8beae7a6efff567b63527454bf7f..692d45c8b39c5feea6a2c6fa7f234c6770ceaa8b 100644 (file)
--- a/common/rc
+++ b/common/rc
@@ -1322,7 +1322,7 @@ _require_xfs_crc()
 #
 _require_ext4_mkfs_bigalloc()
 {
-       $MKFS_EXT4_PROG -F -O bigalloc -n $SCRATCH_DEV 200k >/dev/null 2>&1 \
+       $MKFS_EXT4_PROG -F -O bigalloc -n $SCRATCH_DEV 512m >/dev/null 2>&1 \
           || _notrun "mkfs.ext4 doesn't have bigalloc feature"
 }
 
@@ -1330,7 +1330,7 @@ _require_ext4_mkfs_bigalloc()
 #
 _require_ext4_bigalloc()
 {
-       $MKFS_EXT4_PROG -F -O bigalloc $SCRATCH_DEV 200k >/dev/null 2>&1
+       $MKFS_EXT4_PROG -F -O bigalloc $SCRATCH_DEV 512m >/dev/null 2>&1
        _scratch_mount >/dev/null 2>&1 \
           || _notrun "Ext4 kernel doesn't support bigalloc feature"
        umount $SCRATCH_MNT