]> www.infradead.org Git - users/hch/xfstests-dev.git/commitdiff
populate: adjust rtrmap calculations for rtgroups
authorDarrick J. Wong <djwong@kernel.org>
Thu, 21 Nov 2024 00:27:31 +0000 (16:27 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 23 Jan 2025 21:19:58 +0000 (13:19 -0800)
Now that we've sharded the realtime volume and created per-group rmap
btrees, we need to adjust downward the size of rtrmapbt records since
the block counts are now 32-bit instead of 64-bit.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
common/populate

index 41f5941070efc8ce554b431568058a4d1472999d..9c883ecbed5d3aa4df39d54c57b5e186d85441c6 100644 (file)
@@ -459,7 +459,7 @@ _scratch_xfs_populate() {
        is_rt="$(_xfs_get_rtextents "$SCRATCH_MNT")"
        if [ $is_rmapbt -gt 0 ] && [ $is_rt -gt 0 ]; then
                echo "+ rtrmapbt btree"
-               nr="$((blksz * 2 / 32))"
+               nr="$((blksz * 2 / 24))"
                $XFS_IO_PROG -R -f -c 'truncate 0' "${SCRATCH_MNT}/RTRMAPBT"
                __populate_create_file $((blksz * nr)) "${SCRATCH_MNT}/RTRMAPBT"
        fi