]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
xfs/130,235: deal with an unreplayable dirty log
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 25 Aug 2016 23:28:38 +0000 (16:28 -0700)
committerEryu Guan <eguan@redhat.com>
Fri, 2 Sep 2016 08:40:33 +0000 (16:40 +0800)
Now that we have log replay items, an FS shutdown due to a corrupt
btree results in a log that can't be replayed.  The only solution
here is to zap the log when we're fixing the corrupt fs, so do that
here.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/xfs/130
tests/xfs/235

index 7d8ea2a49ebeb42815dcf6fe2ac7e6cfff6aff72..554d07894f5f0db6d394bae4e4ba3272df570df4 100755 (executable)
@@ -87,7 +87,8 @@ _cp_reflink "${SCRATCH_MNT}/file1" "${SCRATCH_MNT}/file4" 2> /dev/null && \
 umount "${SCRATCH_MNT}"
 
 echo "+ repair fs"
-_scratch_xfs_repair >> "$seqres.full" 2>&1
+_disable_dmesg_check
+_repair_scratch_fs >> "$seqres.full" 2>&1
 _scratch_xfs_repair >> "$seqres.full" 2>&1
 
 echo "+ mount image (2)"
index c2e03401d7f811ddba953aceb8bcb639d03c19d4..ef51d226bc831c52c7307b6bee0194e56a79e039 100755 (executable)
@@ -85,7 +85,8 @@ test -s ${SCRATCH_MNT}/file4 && _fail "should not be able to copy with busted rm
 umount ${SCRATCH_MNT}
 
 echo "+ repair fs"
-_scratch_xfs_repair >> $seqres.full 2>&1
+_disable_dmesg_check
+_repair_scratch_fs >> "$seqres.full" 2>&1
 _scratch_xfs_repair >> $seqres.full 2>&1
 
 echo "+ mount image (2)"