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@xxxxxx> --- common/rc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/rc b/common/rc index 9bed6dad9303..f9ffe2d279bc 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 -- 2.47.2