]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_repair: implement custom ifork verifiers
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 27 Mar 2018 02:27:28 +0000 (21:27 -0500)
committerEric Sandeen <sandeen@redhat.com>
Tue, 27 Mar 2018 02:27:28 +0000 (21:27 -0500)
commit3452f451b2ecd91ca2c6609c150779e32a8a1442
tree634920f734010bd0fd536b8bb0a69f00b42dcdb8
parente2bc34de8f935443b4570244ade8d5da0af9c0b0
xfs_repair: implement custom ifork verifiers

There are a few cases where an early stage of xfs_repair will write an
invalid inode fork buffer to signal to a later stage that it needs to
correct the value.  This happens in phase 4 when we detect an inline
format directory with an invalid .. pointer.  To avoid triggering the
ifork verifiers on this, inject a custom verifier for phase 6 that lets
this pass for now.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/libxfs_api_defs.h
repair/phase6.c