]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs_repair: find and clobber rtgroup bitmap and summary files
authorDarrick J. Wong <djwong@kernel.org>
Tue, 13 Aug 2024 19:27:56 +0000 (12:27 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 14 Aug 2024 03:08:16 +0000 (20:08 -0700)
commitc412674675c7b83e4ece86ce7449c560903da5ea
treee61996d7bbd57b7285cbd3482302ca0ae6a80ce8
parent11e5ae7f3c62f19b01bed736319593dcca0cb464
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>
repair/dino_chunks.c
repair/dinode.c