]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
xfs/157,xfs/547,xfs/548: switch to using _scratch_mkfs_sized
authorHans Holmberg <Hans.Holmberg@wdc.com>
Tue, 8 Oct 2024 10:52:04 +0000 (10:52 +0000)
committerZorro Lang <zlang@kernel.org>
Thu, 10 Oct 2024 08:03:40 +0000 (16:03 +0800)
commit2f7e1b8a6f09b6e9f7fcfc69618e05bb76ac10c0
treea9454dcf4cae69250a873bc2c899e3abb60fd5cf
parent0ffcda29e8a05a139593a46dea6ef75efdc6e805
xfs/157,xfs/547,xfs/548: switch to using _scratch_mkfs_sized

These test cases specify small -d sizes which combined with a rt dev of
unrestricted size and the rtrmap feature can cause mkfs to fail with
error:

mkfs.xfs: cannot handle expansion of realtime rmap btree; need <x> free
blocks, have <y>

This is due to that the -d size is not big enough to support the
metadata space allocation required for the rt groups.

Switch to use _scratch_mkfs_sized that sets up the -r size parameter
to avoid this. If -r size=x and -d size=x we will not risk running
out of space on the ddev as the metadata size is just a fraction of
the rt data size.

Signed-off-by: Hans Holmberg <hans.holmberg@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/xfs/157
tests/xfs/547
tests/xfs/548