mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfs: refactor xfs/299 for crc feature pre-checkup
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 <jeff.liu@oracle.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
+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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user