]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_repair: find and clobber rtgroup bitmap and summary files
authorDarrick J. Wong <djwong@kernel.org>
Thu, 21 Nov 2024 00:24:35 +0000 (16:24 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 24 Dec 2024 02:01:33 +0000 (18:01 -0800)
commitb1803dc7b63b99140627a94b37337662234438b8
tree5efce8ebe3a30524d1b39959a12ee4033fa40054
parent7c541c90fd77a20000dbc68497fdb49b4b9b2788
xfs_repair: find and clobber rtgroup bitmap and summary files

On a rtgroups filesystem, if the rtgroups bitmap or summary files are
garbage, we need to clear the dinode and update the incore bitmap so
that we don't bother to check the old rt freespace metadata.

However, we regenerate the entire rt metadata directory tree during
phase 6.  If the bitmap and summary files are ok, we still want to clear
the dinode, but we can still use the incore inode to check the old
freespace contents.  Split the clear_dinode function into two pieces,
one that merely zeroes the inode, and the old clear_dinode now turns off
checking.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
repair/dino_chunks.c
repair/dinode.c