]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs_repair: support more than 2^32 rmapbt records per AG
authorDarrick J. Wong <djwong@djwong.org>
Mon, 15 Apr 2024 23:07:50 +0000 (16:07 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 17 Apr 2024 21:06:28 +0000 (14:06 -0700)
commitcf3fe96eb6b4c41162a402f99470f41d4cb1b275
treef375e6e21062dabde5631fc6d24841ee0ba248b0
parentd4bd0b1b107802bd9417963450dd33847fb4f323
xfs_repair: support more than 2^32 rmapbt records per AG

Now that the incore structures handle more than 2^32 records correctly,
fix the rmapbt generation code to handle that many records.  This fixes
the problem where an extremely large rmapbt cannot be rebuilt properly
because of integer truncation.

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