[PATCHSET v2.6 4/5] mkfs/repair: use new rtbitmap helpers

Darrick J. Wong
2024-10-25T06:32:12Z

Hi all,

Use the new rtfile helpers to create the rt bitmap and summary files instead of
duplicating the logic that the in-kernel growfs already had.

If you're going to start using this code, I strongly recommend pulling
from my git trees, which are linked below.

Comments and questions are, as always, welcome.

xfsprogs git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfsprogs-dev.git/log/?h=misc-use-rtbitmap-helpers-6.12
---
Commits in this patchset:
* xfs_repair: checking rt free space metadata must happen during phase 4
* xfs_repair: use xfs_validate_rt_geometry
* mkfs: remove a pointless rtfreesp_init forward declaration
* mkfs: use xfs_rtfile_initialize_blocks
* xfs_repair: use libxfs_rtfile_initialize_blocks
* xfs_repair: stop preallocating blocks in mk_rbmino and mk_rsumino
---
libxfs/libxfs_api_defs.h | 2
mkfs/proto.c | 107 +++--------------
repair/phase4.c | 7 +
repair/phase5.c | 6 -
repair/phase6.c | 284 +++++++---------------------------------------
repair/sb.c | 40 ------
repair/xfs_repair.c | 3
7 files changed, 73 insertions(+), 376 deletions(-)