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 Wed, Apr 15, 2026 at 07:53:52AM +0200, Johannes Thumshirn wrote: > On 4/15/26 7:22 AM, Christoph Hellwig wrote: >> 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/ > Fixed >> 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? > Sure, can I still use _scratch_mkfs_sized for XFS? Yes. It sizes both the main and RT device.