Re: [PATCH v2] xfs: add a test for number of open zones on conventional devices

Christoph Hellwig <[email protected]>
Newsgroups org.kernel.vger.fstests,org.kernel.vger.linux-xfs
Message-ID <[email protected]>
On Tue, Apr 07, 2026 at 01:05:28AM +0800, Zorro Lang wrote:
> > 
> > I think _notrun if mkfs or the initial mount fails might be easier and
> > better here.
> 
> How about a _require_xfs_mkfs_zoned ?
> 
> And about `_scratch_mount -o max_open_zones=${open_zones}`, if max_open_zones
> mount option isn't supported, _scratch_mount will fail directly. So how about
> 
>   _try_scratch_mount -o max_open_zones=${open_zones} || \
>           _notrun "max_open_zones option is not supported"
> 
> Or we can have a helper for that, as xfs/642~644 and xfs/668 also need that.

I'll take a look.  max_open_zones is always supported for zoned xfs
file systems - the notrun is intended to cover the case where the kernel
can't mount zoned file systems - either because it is too old, or because
XFS_RT is not enabled.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.