]> www.infradead.org Git - users/hch/xfstests-dev.git/commitdiff
xfs: check for zoned-specific errors in _try_scratch_mkfs_xfs
authorChristoph Hellwig <hch@lst.de>
Wed, 21 Feb 2024 16:15:48 +0000 (17:15 +0100)
committerChristoph Hellwig <hch@lst.de>
Tue, 5 Nov 2024 08:31:58 +0000 (09:31 +0100)
Check for a few errors issued for unsupported zoned configurations in
_try_scratch_mkfs_xfs so that the test is not run instead of failed.

Signed-off-by: Christoph Hellwig <hch@lst.de>
common/xfs

index 6636e4327c9a27429978c8ac178e3e78fba5211b..7faa880169f9608a014e67af99d34650848eb041 100644 (file)
@@ -160,6 +160,11 @@ _try_scratch_mkfs_xfs()
 
        grep -q crc=0 $tmp.mkfsstd && _force_xfsv4_mount_options
 
+       grep -q "zoned file systems do not support" $tmp.mkfserr && \
+               _notrun "Not supported on zoned file systems"
+       grep -q "must be greater than the minimum" $tmp.mkfserr && \
+               _notrun "Zone count too small"
+
        if [ $mkfs_status -eq 0 -a "$LARGE_SCRATCH_DEV" = yes ]; then
                # manually parse the mkfs output to get the fs size in bytes
                local fs_size