From: Christoph Hellwig Date: Thu, 1 May 2025 13:38:56 +0000 (-0500) Subject: common: notrun in mkfs_dev for too small zoned file systems X-Git-Tag: v2025.05.11~22 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d4d28552829e976d36d05b673cc01f80aad3c35b;p=xfstests-dev.git common: notrun in mkfs_dev for too small zoned file systems Similar to the regular scratch_mkfs, skip the test if the file system would be so small that there's not enough zones. Signed-off-by: Christoph Hellwig Reviewed-by: "Darrick J. Wong" Signed-off-by: Zorro Lang --- diff --git a/common/rc b/common/rc index fac9b6da..5f155596 100644 --- a/common/rc +++ b/common/rc @@ -906,6 +906,10 @@ _mkfs_dev() { local tmp=`mktemp -u` if ! _try_mkfs_dev "$@" 2>$tmp.mkfserr 1>$tmp.mkfsstd; then + grep -q "must be greater than the minimum zone count" $tmp.mkfserr && \ + _notrun "Zone count too small" + grep -q "too small for zoned allocator" $tmp.mkfserr && \ + _notrun "Zone count too small" # output stored mkfs output cat $tmp.mkfserr >&2 cat $tmp.mkfsstd