]> 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>
Thu, 15 Aug 2024 18:56:26 +0000 (11:56 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 16 Aug 2024 21:57:35 +0000 (14:57 -0700)
commit79b620dce4073655cc45cafcce2c5bb0f8fe7776
tree2cdd8dc8143db7c15b9bafa066872333e589cbc9
parentb403ffea82bf795d90845e6f23af3f0cf6d412c3
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