xfstests: refactor xfs/299 for crc feature pre-checkup
PATCH v2 2/4 xfstests: refactor xfs/299 for crc feature pre-checkup
From: Jie Liu <[email protected]>
Refactor xfs/299 to make use of those two crc related pre-checkup routines, and remove the super block number from the golden output file as it does not make sense IMO. Also, filter out *EXPERIMENTAL* string from mkfs.xfs output as those contents would be removed once crc feature becomes stable.
Signed-off-by Jie Liu <[email protected]>
--- tests/xfs/299 | 14 ++++---------- tests/xfs/299.out | 1 - 2 files changed, 4 insertions(+), 11 deletions(-)
tests/xfs/299 +4 -10
@@ -54,6 +54,8 @@ chmod a+rwx $seqres.full # arbitrary users will write here _require_scratch _require_xfs_quota +_require_xfs_mkfs_crc +_require_xfs_crc bsoft=100 bhard=500
@@ -193,19 +195,11 @@ _exercise() } -_scratch_mkfs_xfs | _filter_mkfs 2>$tmp.mkfs +_scratch_mkfs_xfs -m crc=1 2>/dev/null | _filter_mkfs 2>$tmp.mkfs cat $tmp.mkfs >>$seqres.full # keep the blocksize and data size for dd later . $tmp.mkfs -sb_ver=`$XFS_DB_PROG -r -c version $SCRATCH_DEV | awk -F= '{print $2}' | awk -F, '{print $1}' |cut -c3-` -echo $sb_ver - -if [ $sb_ver -lt 5 ] -then - _notrun "Can't run with older versions of superblock" -fi - cat >$tmp.projects <<EOF 1:$SCRATCH_MNT EOF
@@ -228,7 +222,7 @@ echo "*** unmount" umount $SCRATCH_MNT -_scratch_mkfs_xfs | _filter_mkfs 2>$tmp.mkfs +_scratch_mkfs_xfs -m crc=1 2>/dev/null | _filter_mkfs 2>$tmp.mkfs cat $tmp.mkfs >>$seqres.full # keep the blocksize and data size for dd later . $tmp.mkfs
tests/xfs/299.out +0 -1
@@ -5,7 +5,6 @@ data = bsize=XXX blocks=XXX, imaxpct=PCT naming =VERN bsize=XXX log =LDEV bsize=XXX blocks=XXX realtime =RDEV extsz=XXX blocks=XXX, rtextents=XXX -5 *** user, group, and project *** report no quota settings
Signature · 6 lines
1.8.3.2 _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs