]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
xfs/078: omit -m crc=0 mkfs option if mkfs.xfs has no meta support
authorEryu Guan <eguan@redhat.com>
Tue, 4 Aug 2015 04:10:49 +0000 (14:10 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 4 Aug 2015 04:10:49 +0000 (14:10 +1000)
This basically does the same as in commit

90a3bfc xfs: be compatible with older mkfs.xfs which has no v5 support

which left xfs/078 behind.

Signed-off-by: Eryu Guan <eguan@redhat.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/xfs/078

index 32436f7e6b7efd9ab07ea83c0812858c5bcfa277..0d6eb5573490edf5d63aefdf837cd65e8e4534fc 100755 (executable)
@@ -87,7 +87,11 @@ _grow_loop()
        echo
 
        echo "*** mkfs loop file (size=$original)"
-       $MKFS_XFS_PROG -m crc=0 -b size=$bsize -d $dparam \
+       mkfs_crc_opts="-m crc=0"
+       if [ -n "$XFS_MKFS_HAS_NO_META_SUPPORT" ]; then
+               mkfs_crc_opts=""
+       fi
+       $MKFS_XFS_PROG $mkfs_crc_opts -b size=$bsize -d $dparam \
                | _filter_mkfs 2>/dev/null
 
        echo "*** extend loop file"