]> www.infradead.org Git - users/hch/xfstests-dev.git/commitdiff
populate: adjust rtrmap calculations for rtgroups
authorDarrick J. Wong <djwong@kernel.org>
Tue, 6 Feb 2024 00:06:47 +0000 (16:06 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 1 Nov 2024 20:42:00 +0000 (13:42 -0700)
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 803d61f0427b7eb5d6ef59bf71a12dedfa4c181e..c7bf29eebd8d02c6bc35df7750c3b66f5562b1ed 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