Re: [PATCH] btrfs-progs: default to SINGLE profile on zoned devices
From: David Sterba <hidden>
Date: 2021-07-07 14:56:55
On Tue, Jul 06, 2021 at 06:19:22PM +0900, Johannes Thumshirn wrote:
On zoned devices we're currently not supporting any other block group profile than the SINGLE profile, so pick it as default value otherwise a user would have to specify it manually at mkfs time for rotational zoned devices.
Yes this is annoying but careful with setting defaults, it's hard to change them. And in case of zoned devices it will be possible to set something else in the future so defaulting to single/single needs to be justified in another way than "currently we don't support anything else". The SSD fallback to single is not showing as useful and there's ongoing work to make it default to dup for metadata again. For consistency I'd rather have simple logic for selecting defaults and give hints eventually instead of checking random things in the system and then selectin on behalf of the user. Unfortunatelly it's not that easy as there are conflicting valid interests and we don't have defaults that fits all scenarios.