]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
populate: adjust rtrmap calculations for rtgroups
authorDarrick J. Wong <djwong@kernel.org>
Thu, 20 Feb 2025 21:47:13 +0000 (13:47 -0800)
committerZorro Lang <zlang@kernel.org>
Thu, 6 Mar 2025 13:25:55 +0000 (21:25 +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>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/populate

index ade3ace886f4d41a4c0986902d367990a9816a35..1741403fafd9aa1470ddd39d21893adabafb38ba 100644 (file)
@@ -463,7 +463,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