From: "Darrick J. Wong" <darrick.wong@oracle.com> To: david@fromorbit.com, eguan@redhat.com, darrick.wong@oracle.com Cc: linux-xfs@vger.kernel.org, fstests@vger.kernel.org, xfs@oss.sgi.com Subject: [PATCH 03/13] xfs/{130,235}: deal with an unreplayable dirty log Date: Thu, 25 Aug 2016 16:28:38 -0700 [thread overview] Message-ID: <147216771851.32641.12882618561173838572.stgit@birch.djwong.org> (raw) In-Reply-To: <147216769914.32641.55434969009554013.stgit@birch.djwong.org> 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> --- tests/xfs/130 | 3 ++- tests/xfs/235 | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/xfs/130 b/tests/xfs/130 index 7d8ea2a..554d078 100755 --- a/tests/xfs/130 +++ b/tests/xfs/130 @@ -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)" diff --git a/tests/xfs/235 b/tests/xfs/235 index c2e0340..ef51d22 100755 --- a/tests/xfs/235 +++ b/tests/xfs/235 @@ -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)"
WARNING: multiple messages have this Message-ID (diff)
From: "Darrick J. Wong" <darrick.wong@oracle.com> To: david@fromorbit.com, eguan@redhat.com, darrick.wong@oracle.com Cc: linux-xfs@vger.kernel.org, fstests@vger.kernel.org, xfs@oss.sgi.com Subject: [PATCH 03/13] xfs/{130,235}: deal with an unreplayable dirty log Date: Thu, 25 Aug 2016 16:28:38 -0700 [thread overview] Message-ID: <147216771851.32641.12882618561173838572.stgit@birch.djwong.org> (raw) In-Reply-To: <147216769914.32641.55434969009554013.stgit@birch.djwong.org> 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> --- tests/xfs/130 | 3 ++- tests/xfs/235 | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/xfs/130 b/tests/xfs/130 index 7d8ea2a..554d078 100755 --- a/tests/xfs/130 +++ b/tests/xfs/130 @@ -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)" diff --git a/tests/xfs/235 b/tests/xfs/235 index c2e0340..ef51d22 100755 --- a/tests/xfs/235 +++ b/tests/xfs/235 @@ -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)" _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs
next prev parent reply other threads:[~2016-08-25 23:30 UTC|newest] Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top 2016-08-25 23:28 [PATCH v8 00/13] xfstests: fixes and new tests for rmap/reflink/fsmap Darrick J. Wong 2016-08-25 23:28 ` Darrick J. Wong 2016-08-25 23:28 ` [PATCH 01/13] tests/xfs: don't run tests if cowextsize isn't present Darrick J. Wong 2016-08-25 23:28 ` Darrick J. Wong 2016-08-25 23:28 ` [PATCH 02/13] xfs/122: decrease the log update done item sizes Darrick J. Wong 2016-08-25 23:28 ` Darrick J. Wong 2016-08-25 23:28 ` Darrick J. Wong [this message] 2016-08-25 23:28 ` [PATCH 03/13] xfs/{130,235}: deal with an unreplayable dirty log Darrick J. Wong 2016-08-25 23:28 ` [PATCH 04/13] generic/159, 160: deal with EACCESS -> EPERM transition Darrick J. Wong 2016-08-25 23:28 ` Darrick J. Wong 2016-08-25 23:28 ` [PATCH 05/13] xfs/122: test btree header block sizes Darrick J. Wong 2016-08-25 23:28 ` Darrick J. Wong 2016-08-25 23:28 ` [PATCH 06/13] xfs: fix $XFS_DB_PROG usage Darrick J. Wong 2016-08-25 23:28 ` Darrick J. Wong 2016-09-01 7:37 ` Eryu Guan 2016-09-01 7:37 ` Eryu Guan 2016-09-01 15:57 ` Darrick J. Wong 2016-09-01 15:57 ` Darrick J. Wong 2016-09-01 21:34 ` Dave Chinner 2016-09-01 21:34 ` Dave Chinner 2016-08-25 23:29 ` [PATCH 07/13] xfs: test swapext with reflink Darrick J. Wong 2016-08-25 23:29 ` Darrick J. Wong 2016-08-25 23:29 ` [PATCH 08/13] xfs: more rmapbt tests Darrick J. Wong 2016-08-25 23:29 ` Darrick J. Wong 2016-09-01 8:33 ` Eryu Guan 2016-09-01 8:33 ` Eryu Guan 2016-09-04 17:40 ` Darrick J. Wong 2016-09-04 17:40 ` Darrick J. Wong 2016-08-25 23:29 ` [PATCH 09/13] xfs: test realtime rmapbt code Darrick J. Wong 2016-08-25 23:29 ` Darrick J. Wong 2016-09-08 10:19 ` Eryu Guan 2016-09-08 15:39 ` Darrick J. Wong 2016-08-25 23:29 ` [PATCH 10/13] xfs: test getfsmap ioctl Darrick J. Wong 2016-08-25 23:29 ` Darrick J. Wong 2016-08-25 23:29 ` [PATCH 11/13] xfs: test getbmapx shared extent reporting Darrick J. Wong 2016-08-25 23:29 ` Darrick J. Wong 2016-08-25 23:29 ` [PATCH 12/13] xfs/122: track xfs_scrub_metadata Darrick J. Wong 2016-08-25 23:29 ` [PATCH 13/13] xfs/122: check the ag reservation counter ioctl Darrick J. Wong 2016-08-25 23:29 ` Darrick J. Wong
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=147216771851.32641.12882618561173838572.stgit@birch.djwong.org \ --to=darrick.wong@oracle.com \ --cc=david@fromorbit.com \ --cc=eguan@redhat.com \ --cc=fstests@vger.kernel.org \ --cc=linux-xfs@vger.kernel.org \ --cc=xfs@oss.sgi.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.