Re: [PATCH v3] fstests: test premature ENOSPC in zoned garbage collection

Christoph Hellwig <[email protected]>
Newsgroups org.kernel.vger.fstests,org.kernel.vger.linux-btrfs
Message-ID <[email protected]>
On Tue, Apr 14, 2026 at 04:33:41PM +0200, Johannes Thumshirn wrote:
> This test stresses garbage collection in zoned file systems by
> constantly overwriting the same file. It is inspired by a reproducer for
> a btrfs bugifx.

s/bugifx/bugfix/

I tried this on XFS, and it doesn't work as XFS uses SCRATCH_RTDEV for
zoned data.  Manually hacking in SCRATCH_RTDEV makes it work, but that
will break btrfs.  Maybe you can add a little:

if [ -b "$SCRATCH_RTDEV" ];
	zoned_dev=$SCRATCH_RTDEV
else
	zoned_dev=$SCRATCH_DEV
endif

end then use $zoned_dev to make it portable?

I also tried it on f2fs, but mkfs.f2fs fails now with a 'different sector
sizes' warning when using a 4k-sector conventional and 4k-sector zoned
ZNS namespace, so I guess I'll give up on that.
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.