]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfs/104: use _scratch_mkfs_sized
authorDarrick J. Wong <djwong@kernel.org>
Thu, 20 Feb 2025 21:47:12 +0000 (13:47 -0800)
committerZorro Lang <zlang@kernel.org>
Thu, 6 Mar 2025 13:25:55 +0000 (21:25 +0800)
commit46efcb34db7d468c8c726662ede42a00d0847261
tree5fa0003ca7d2d730b24b33cb488d3978d228da3a
parent260efb67e86b2f580360829ef53979299cbb8a20
xfs/104: use _scratch_mkfs_sized

Use _scratch_mkfs_sized instead of opencoding the small fs creation
logic because the helper scales down the size of the rt volume to match
the data volume.  This means the format won't fail if SCRATCH_RTDEV is
quite large.

Also fix some incorrect bash usage of "$@" and remove the leading
underscore because it's a private test function.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/xfs/104