]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs_repair: support realtime groups
authorChristoph Hellwig <hch@lst.de>
Thu, 21 Nov 2024 00:24:35 +0000 (16:24 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 28 Nov 2024 02:33:17 +0000 (18:33 -0800)
commitbd34d615f47cebd7c80c45ee6fe8cab9eb52c5e7
tree3f1f9798c739b6a34381d02e43aeac66fa61d537
parent1a2037d33a97f78a26a3e1d3d129c5b1f9e68495
xfs_repair: support realtime groups

Make repair aware of multiple rtgroups.  This now uses the same code as the
AG-based data device for block usage tracking instead of the less optimal
AVL trees and bitmaps used for the traditonal RT device.

Note this is still a bit hacky at the moment by just going beyond the AG
arrays and not fully supporting the unknown state for RT allocation yet.
The next patch will clean this up.

All this should be fixable.

Large parts of the code are based on patches from Darrick J. Wong.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
15 files changed:
libxfs/libxfs_api_defs.h
repair/agheader.c
repair/agheader.h
repair/dinode.c
repair/dir2.c
repair/incore.c
repair/incore.h
repair/incore_ext.c
repair/phase2.c
repair/phase4.c
repair/phase6.c
repair/rt.c
repair/rt.h
repair/sb.c
repair/xfs_repair.c