From: Darrick J. Wong Date: Thu, 20 Feb 2025 21:47:13 +0000 (-0800) Subject: populate: adjust rtrmap calculations for rtgroups X-Git-Tag: v2025.03.09~11 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=da61d5383e0f31d588825cf1c262a9cc8bdd96f5;p=xfstests-dev.git populate: adjust rtrmap calculations for rtgroups 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" Reviewed-by: Christoph Hellwig Signed-off-by: Zorro Lang --- diff --git a/common/populate b/common/populate index ade3ace8..1741403f 100644 --- a/common/populate +++ b/common/populate @@ -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