]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs_repair: reserve per-AG space while rebuilding rt metadata
authorDarrick J. Wong <djwong@kernel.org>
Fri, 15 Jul 2022 21:27:25 +0000 (14:27 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 22 Nov 2023 23:03:39 +0000 (15:03 -0800)
commit6f48148d563be1b42cb71ee4b2d90c93415c2021
tree42f86fa1f503876e248800051a3a0b24929b8967
parent8c738965b7db2358c847b54532089e14b2477680
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>
include/libxfs.h
repair/phase6.c