]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_repair: reserve per-AG space while rebuilding rt metadata
authorDarrick J. Wong <djwong@kernel.org>
Mon, 24 Feb 2025 18:22:02 +0000 (10:22 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 25 Feb 2025 17:16:01 +0000 (09:16 -0800)
commit40c35393ebd0644ab311b6b5a875cc30f4238515
tree0037ecac271774bd5c42d254403aff460a3159db
parent7a90561b1d041d45d333e71550702654b3f629ee
xfs_repair: reserve per-AG space while rebuilding rt metadata

Realtime metadata btrees can consume quite a bit of space on a full
filesystem.  Since the metadata are just regular files, we need to
make the per-AG reservations to avoid overfilling any of the AGs while
rebuilding metadata.  This avoids the situation where a filesystem comes
straight from repair and immediately trips over not having enough space
in an AG.

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