]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
xfs/500: fix reflink support detection and add new groups
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 19 Feb 2019 05:29:05 +0000 (21:29 -0800)
committerEryu Guan <guaneryu@gmail.com>
Thu, 21 Feb 2019 01:48:27 +0000 (09:48 +0800)
Fix some problems detecting reflink support in the test.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/xfs/500
tests/xfs/group

index 7a965c69f6a228e5204c1c17948d821ed7c71fe5..370c78ecaf3a343c96a2c26296c9858226d009b7 100755 (executable)
@@ -36,10 +36,9 @@ _scratch_mkfs -d extszinherit=8388608 >> $seqres.full 2>&1
 test $? -eq 1 || echo "should have failed extszinherit"
 
 # Try cow extent size hint if supported
-$MKFS_XFS_PROG -N -f $SCRATCH_DEV > $tmp.mkfs
-if grep -q 'reflink=' $tmp.mkfs ; then
+if _scratch_mkfs_xfs_supported -m crc=1,reflink=1 >> $seqres.full 2>&1; then
        echo cowextsize >> $seqres.full
-       _scratch_mkfs -m reflink=1 -d cowextsize=8388608 >> $seqres.full 2>&1
+       _scratch_mkfs -m reflink=1,crc=1 -d cowextsize=8388608 >> $seqres.full 2>&1
        test $? -eq 1 || echo "should have failed cowextsize"
 fi
 
index 76b8a413cfad4041bf0d45a2e47baebcec3189fe..0047fb5cb747d03d11a95eb2b6dfae5ccb3d85a4 100644 (file)
 497 dangerous_fuzzers dangerous_scrub dangerous_online_repair
 498 dangerous_fuzzers dangerous_norepair
 499 auto quick
-500 auto quick mkfs
+500 auto quick mkfs prealloc mkfs
 501 auto quick unlink
 502 auto quick unlink