]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
common: notrun in mkfs_dev for too small zoned file systems
authorChristoph Hellwig <hch@lst.de>
Thu, 1 May 2025 13:38:56 +0000 (08:38 -0500)
committerZorro Lang <zlang@kernel.org>
Wed, 7 May 2025 14:11:33 +0000 (22:11 +0800)
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 <hch@lst.de>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/rc

index fac9b6da77c2005fc5cc406f3c2832557681cf55..5f155596271423dbca767262355866d02626a0f0 100644 (file)
--- 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