* Re: [PATCH 3/3] xfs/158: _notrun when the file system can't be created
2025-11-21 7:10 ` [PATCH 3/3] xfs/158: _notrun when the file system can't be created Christoph Hellwig
@ 2025-11-21 17:04 ` Darrick J. Wong
2025-12-02 4:49 ` Zorro Lang
2025-12-05 7:31 ` Zorro Lang
2 siblings, 0 replies; 13+ messages in thread
From: Darrick J. Wong @ 2025-11-21 17:04 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: Zorro Lang, fstests, linux-xfs
On Fri, Nov 21, 2025 at 08:10:07AM +0100, Christoph Hellwig wrote:
> I get an "inode btree counters not supported without finobt support"
> with some zoned setups with the latests xfsprogs. Just _notrun the
> test if we can't create the original file system feature combination
> that we're trying to upgrade from.
What configuration, specifically? I haven't noticed any problems with
xfs/158 and:
MKFS_OPTIONS -- -f -m metadir=1 -r zoned=1 /dev/sdf
MKFS_OPTIONS -- -f -rrtdev=/dev/sdd -m metadir=1 -d rtinherit=1 -r zoned=1 /dev/sdf
--D
> Signed-off-by: Christoph Hellwig <hch@lst.de>
> ---
> tests/xfs/158 | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/tests/xfs/158 b/tests/xfs/158
> index 89bf8c851659..02ab39ffda0b 100755
> --- a/tests/xfs/158
> +++ b/tests/xfs/158
> @@ -22,12 +22,14 @@ _scratch_mkfs -m crc=1,inobtcount=1,finobt=0 &> $seqres.full && \
> echo "Should not be able to format with inobtcount but not finobt."
>
> # Make sure we can't upgrade a filesystem to inobtcount without finobt.
> -_scratch_mkfs -m crc=1,inobtcount=0,finobt=0 >> $seqres.full
> +try_scratch_mkfs -m crc=1,inobtcount=0,finobt=0 || \
> + _notrun "invalid feature combination" >> $seqres.full
> _scratch_xfs_admin -O inobtcount=1 2>> $seqres.full
> _check_scratch_xfs_features INOBTCNT
>
> # Format V5 filesystem without inode btree counter support and populate it.
> -_scratch_mkfs -m crc=1,inobtcount=0 >> $seqres.full
> +_scratch_mkfs -m crc=1,inobtcount=0 || \
> + _notrun "invalid feature combination" >> $seqres.full
> _scratch_mount
>
> mkdir $SCRATCH_MNT/stress
> --
> 2.47.3
>
>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 3/3] xfs/158: _notrun when the file system can't be created
2025-11-21 7:10 ` [PATCH 3/3] xfs/158: _notrun when the file system can't be created Christoph Hellwig
2025-11-21 17:04 ` Darrick J. Wong
@ 2025-12-02 4:49 ` Zorro Lang
2025-12-02 7:36 ` Christoph Hellwig
2025-12-05 7:31 ` Zorro Lang
2 siblings, 1 reply; 13+ messages in thread
From: Zorro Lang @ 2025-12-02 4:49 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: Zorro Lang, Darrick J. Wong, fstests, linux-xfs
On Fri, Nov 21, 2025 at 08:10:07AM +0100, Christoph Hellwig wrote:
> I get an "inode btree counters not supported without finobt support"
> with some zoned setups with the latests xfsprogs. Just _notrun the
> test if we can't create the original file system feature combination
> that we're trying to upgrade from.
>
> Signed-off-by: Christoph Hellwig <hch@lst.de>
> ---
> tests/xfs/158 | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/tests/xfs/158 b/tests/xfs/158
> index 89bf8c851659..02ab39ffda0b 100755
> --- a/tests/xfs/158
> +++ b/tests/xfs/158
> @@ -22,12 +22,14 @@ _scratch_mkfs -m crc=1,inobtcount=1,finobt=0 &> $seqres.full && \
> echo "Should not be able to format with inobtcount but not finobt."
>
> # Make sure we can't upgrade a filesystem to inobtcount without finobt.
> -_scratch_mkfs -m crc=1,inobtcount=0,finobt=0 >> $seqres.full
> +try_scratch_mkfs -m crc=1,inobtcount=0,finobt=0 || \
Hmm... is "try_scratch_mkfs" a function in your personal repo ?
> + _notrun "invalid feature combination" >> $seqres.full
> _scratch_xfs_admin -O inobtcount=1 2>> $seqres.full
> _check_scratch_xfs_features INOBTCNT
>
> # Format V5 filesystem without inode btree counter support and populate it.
> -_scratch_mkfs -m crc=1,inobtcount=0 >> $seqres.full
> +_scratch_mkfs -m crc=1,inobtcount=0 || \
> + _notrun "invalid feature combination" >> $seqres.full
> _scratch_mount
>
> mkdir $SCRATCH_MNT/stress
> --
> 2.47.3
>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 3/3] xfs/158: _notrun when the file system can't be created
2025-12-02 4:49 ` Zorro Lang
@ 2025-12-02 7:36 ` Christoph Hellwig
2025-12-02 8:40 ` Zorro Lang
0 siblings, 1 reply; 13+ messages in thread
From: Christoph Hellwig @ 2025-12-02 7:36 UTC (permalink / raw)
To: Zorro Lang
Cc: Christoph Hellwig, Zorro Lang, Darrick J. Wong, fstests,
linux-xfs
On Tue, Dec 02, 2025 at 12:49:00PM +0800, Zorro Lang wrote:
> > # Make sure we can't upgrade a filesystem to inobtcount without finobt.
> > -_scratch_mkfs -m crc=1,inobtcount=0,finobt=0 >> $seqres.full
> > +try_scratch_mkfs -m crc=1,inobtcount=0,finobt=0 || \
>
> Hmm... is "try_scratch_mkfs" a function in your personal repo ?
This was supposed to be _try_scratch_mkfs. But I guess that typo
is a good way to make the test never fail :)
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 3/3] xfs/158: _notrun when the file system can't be created
2025-12-02 7:36 ` Christoph Hellwig
@ 2025-12-02 8:40 ` Zorro Lang
0 siblings, 0 replies; 13+ messages in thread
From: Zorro Lang @ 2025-12-02 8:40 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: Zorro Lang, Darrick J. Wong, fstests, linux-xfs
On Tue, Dec 02, 2025 at 08:36:09AM +0100, Christoph Hellwig wrote:
> On Tue, Dec 02, 2025 at 12:49:00PM +0800, Zorro Lang wrote:
> > > # Make sure we can't upgrade a filesystem to inobtcount without finobt.
> > > -_scratch_mkfs -m crc=1,inobtcount=0,finobt=0 >> $seqres.full
> > > +try_scratch_mkfs -m crc=1,inobtcount=0,finobt=0 || \
> >
> > Hmm... is "try_scratch_mkfs" a function in your personal repo ?
>
> This was supposed to be _try_scratch_mkfs. But I guess that typo
> is a good way to make the test never fail :)
Hah, but there's not _try_scratch_mkfs in mainline fstests currently, there's
_try_scratch_mkfs_xfs .
>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 3/3] xfs/158: _notrun when the file system can't be created
2025-11-21 7:10 ` [PATCH 3/3] xfs/158: _notrun when the file system can't be created Christoph Hellwig
2025-11-21 17:04 ` Darrick J. Wong
2025-12-02 4:49 ` Zorro Lang
@ 2025-12-05 7:31 ` Zorro Lang
2025-12-05 8:08 ` Christoph Hellwig
2 siblings, 1 reply; 13+ messages in thread
From: Zorro Lang @ 2025-12-05 7:31 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: Zorro Lang, Darrick J. Wong, fstests, linux-xfs
On Fri, Nov 21, 2025 at 08:10:07AM +0100, Christoph Hellwig wrote:
> I get an "inode btree counters not supported without finobt support"
> with some zoned setups with the latests xfsprogs. Just _notrun the
> test if we can't create the original file system feature combination
> that we're trying to upgrade from.
>
> Signed-off-by: Christoph Hellwig <hch@lst.de>
> ---
> tests/xfs/158 | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/tests/xfs/158 b/tests/xfs/158
> index 89bf8c851659..02ab39ffda0b 100755
> --- a/tests/xfs/158
> +++ b/tests/xfs/158
> @@ -22,12 +22,14 @@ _scratch_mkfs -m crc=1,inobtcount=1,finobt=0 &> $seqres.full && \
> echo "Should not be able to format with inobtcount but not finobt."
>
> # Make sure we can't upgrade a filesystem to inobtcount without finobt.
> -_scratch_mkfs -m crc=1,inobtcount=0,finobt=0 >> $seqres.full
> +try_scratch_mkfs -m crc=1,inobtcount=0,finobt=0 || \
> + _notrun "invalid feature combination" >> $seqres.full
> _scratch_xfs_admin -O inobtcount=1 2>> $seqres.full
> _check_scratch_xfs_features INOBTCNT
>
> # Format V5 filesystem without inode btree counter support and populate it.
> -_scratch_mkfs -m crc=1,inobtcount=0 >> $seqres.full
> +_scratch_mkfs -m crc=1,inobtcount=0 || \
> + _notrun "invalid feature combination" >> $seqres.full
Hi Christoph,
BTW, shouldn't we do ">> $seqres.full" behind the _scratch_mkfs, why does that
for _notrun?
Two patches of this patchset have been acked. As this patchset is a random fix,
so I'd like to merge those 2 "acked" patches at first, then you can re-send
the 3rd patch with other patches later. Is that good to you?
Thanks,
Zorro
> _scratch_mount
>
> mkdir $SCRATCH_MNT/stress
> --
> 2.47.3
>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 3/3] xfs/158: _notrun when the file system can't be created
2025-12-05 7:31 ` Zorro Lang
@ 2025-12-05 8:08 ` Christoph Hellwig
2025-12-05 17:33 ` Zorro Lang
0 siblings, 1 reply; 13+ messages in thread
From: Christoph Hellwig @ 2025-12-05 8:08 UTC (permalink / raw)
To: Zorro Lang
Cc: Christoph Hellwig, Zorro Lang, Darrick J. Wong, fstests,
linux-xfs
On Fri, Dec 05, 2025 at 03:31:25PM +0800, Zorro Lang wrote:
> > +_scratch_mkfs -m crc=1,inobtcount=0 || \
> > + _notrun "invalid feature combination" >> $seqres.full
>
> Hi Christoph,
>
> BTW, shouldn't we do ">> $seqres.full" behind the _scratch_mkfs, why does that
> for _notrun?
>
> Two patches of this patchset have been acked. As this patchset is a random fix,
> so I'd like to merge those 2 "acked" patches at first, then you can re-send
> the 3rd patch with other patches later. Is that good to you?
Please drop it. I have some ideas to attack the whole set of issues with
combining flags in a more systematic way, but I'll need some time to try
and test them.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 3/3] xfs/158: _notrun when the file system can't be created
2025-12-05 8:08 ` Christoph Hellwig
@ 2025-12-05 17:33 ` Zorro Lang
0 siblings, 0 replies; 13+ messages in thread
From: Zorro Lang @ 2025-12-05 17:33 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: Zorro Lang, Darrick J. Wong, fstests, linux-xfs
On Fri, Dec 05, 2025 at 09:08:11AM +0100, Christoph Hellwig wrote:
> On Fri, Dec 05, 2025 at 03:31:25PM +0800, Zorro Lang wrote:
> > > +_scratch_mkfs -m crc=1,inobtcount=0 || \
> > > + _notrun "invalid feature combination" >> $seqres.full
> >
> > Hi Christoph,
> >
> > BTW, shouldn't we do ">> $seqres.full" behind the _scratch_mkfs, why does that
> > for _notrun?
> >
> > Two patches of this patchset have been acked. As this patchset is a random fix,
> > so I'd like to merge those 2 "acked" patches at first, then you can re-send
> > the 3rd patch with other patches later. Is that good to you?
>
> Please drop it. I have some ideas to attack the whole set of issues with
> combining flags in a more systematic way, but I'll need some time to try
> and test them.
OK, thanks Christoph, I'll merge other 2 patches in next fstests release.
>
^ permalink raw reply [flat|nested] 13+ messages in thread