Re: [PATCH 2/2] xfs: Add test for mkfs with smaller zone capacity

Hans Holmberg
2025-11-21T08:35:03Z

On 21/11/2025 08:00, Johannes Thumshirn wrote:
> On 11/21/25 7:57 AM, hch wrote:
>> On Fri, Nov 21, 2025 at 06:51:31AM +0000, Johannes Thumshirn wrote:
>>> On 11/20/25 5:09 PM, cem@kernel.org wrote:
>>>> From: Carlos Maiolino <cem@kernel.org>
>>>>
>>>> Add a regression test for initializing zoned block devices with
>>>> sequential zones with a capacity smaller than the conventional
>>>> zones capacity.
>>>
>>> Hi Carlos,
>>>
>>> Two quick questions:
>>>
>>> 1) Is there a specific reason this is a xfs only test? I think checking
>>> this on btrfs and f2fs would make sense as well, like with generic/781.
>> Didn't f2fs drop zone_capacity < zone_size support because they only
>> care about their android out of tree use case?
>>
>> But otherwise I'd agree.
>>
> That one I actually don't know
>
>
+ Bart

I've been benchmarking f2fs with zone capacity < zone size lately on SSD
devices, so i'd be surprised if that has stopped working (but that requires
a separate blockdev for metadata (e.g. a separate name space)

Single-zoned-device f2fs file systems also works:

mkfs.f2fs -m /dev/<host managed smr disk>
(but that has zone_size==cone_capacity)

..so i think this should be applicable for f2fs as well