]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: zap broken inode forks
authorDarrick J. Wong <djwong@kernel.org>
Mon, 15 Apr 2024 23:07:39 +0000 (16:07 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 17 Apr 2024 21:06:25 +0000 (14:06 -0700)
commit7c5d4f9222e85774d813197b13313dc1f7bb7c72
treefbb0f4ded89df5339ff8041dcd48d9b4f8340554
parentae31a1813a356e5ac38f4c572fedf42dfe98267f
xfs: zap broken inode forks

Source kernel commit: e744cef206055954517648070d2b3aaa3d2515ba

Determine if inode fork damage is responsible for the inode being unable
to pass the ifork verifiers in xfs_iget and zap the fork contents if
this is true.  Once this is done the fork will be empty but we'll be
able to construct an in-core inode, and a subsequent call to the inode
fork repair ioctl will search the rmapbt to rebuild the records that
were in the fork.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bill O'Donnell <bodonnel@redhat.com>
libxfs/xfs_attr_leaf.c
libxfs/xfs_attr_leaf.h
libxfs/xfs_bmap.c
libxfs/xfs_bmap.h
libxfs/xfs_dir2_priv.h
libxfs/xfs_dir2_sf.c
libxfs/xfs_inode_fork.c
libxfs/xfs_shared.h
libxfs/xfs_symlink_remote.c