Thread (49 messages) 49 messages, 4 authors, 2021-02-11

Re: [PATCH 07/10] xfs_repair: set NEEDSREPAIR when we deliberately corrupt directories

From: Christoph Hellwig <hch@infradead.org>
Date: 2021-02-09 09:18:27

On Mon, Feb 08, 2021 at 08:10:44PM -0800, Darrick J. Wong wrote:
From: Darrick J. Wong <djwong@kernel.org>

There are a few places in xfs_repair's directory checking code where we
deliberately corrupt a directory entry as a sentinel to trigger a
correction in later repair phase.  In the mean time, the filesystem is
inconsistent, so set the needsrepair flag to force a re-run of repair if
the system goes down.
I guess this is an improvement over what we have no, but I suspect an
in-core side band way to notify the later phases would be much better
than these corrupt sentinel values..
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help