From 5a18f833e8aa7ad7cc7edf6f60c7182036348751 Mon Sep 17 00:00:00 2001 From: Eryu Guan Date: Tue, 4 Aug 2015 14:10:49 +1000 Subject: [PATCH] xfs/078: omit -m crc=0 mkfs option if mkfs.xfs has no meta support 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 Reviewed-by: Eric Sandeen Signed-off-by: Dave Chinner --- tests/xfs/078 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/xfs/078 b/tests/xfs/078 index 32436f7e..0d6eb557 100755 --- a/tests/xfs/078 +++ b/tests/xfs/078 @@ -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" -- 2.39.5