From: David Sterba <dsterba@suse.cz>
To: Johannes Thumshirn <Johannes.Thumshirn@wdc.com>
Cc: Nikolay Borisov <nborisov@suse.com>,
Hans van Kranenburg <hans@knorrie.org>,
Qu Wenruo <quwenruo.btrfs@gmx.com>,
David Sterba <dsterba@suse.cz>,
"linux-btrfs@vger.kernel.org" <linux-btrfs@vger.kernel.org>
Subject: Re: [PATCH] btrfs: pass checksum type via BTRFS_IOC_FS_INFO ioctl
Date: Wed, 24 Jun 2020 17:36:04 +0200 [thread overview]
Message-ID: <20200624153604.GR27795@twin.jikos.cz> (raw)
In-Reply-To: <SN4PR0401MB35983CAFFB7912C03A45818B9B950@SN4PR0401MB3598.namprd04.prod.outlook.com>
On Wed, Jun 24, 2020 at 01:01:08PM +0000, Johannes Thumshirn wrote:
> On 24/06/2020 14:21, Nikolay Borisov wrote:
> > So the answer could go both ways, but this doesn't mean we shouldn't
> > strive to build better/more robust interfaces.
>
> By changing the reserved16 field to a version, we could have both. I
> just don't think there's much value add here.
>
> After Hans spoke up, I favor the flags field, as it's more flexible and
> puts less assumptions on user-space. If the flag is set, field X is valid.
Yes that's the idea and version does not make sense to me as it's too
coarse. The whole problem here is that the default zeroing of the unused
members does not help like for other members where zero usually does not
make sense at all (like sectorsize, or the latest addition
clone_alignment). So we need the bit to say 'this value is actually
correct'.
next prev parent reply other threads:[~2020-06-24 15:36 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-24 10:21 [PATCH] btrfs: pass checksum type via BTRFS_IOC_FS_INFO ioctl Johannes Thumshirn
2020-06-24 11:03 ` Qu Wenruo
2020-06-24 11:41 ` Johannes Thumshirn
2020-06-24 11:55 ` Qu Wenruo
2020-06-24 12:14 ` Hans van Kranenburg
2020-06-24 12:17 ` Johannes Thumshirn
2020-06-24 12:21 ` Nikolay Borisov
2020-06-24 13:01 ` Johannes Thumshirn
2020-06-24 15:36 ` David Sterba [this message]
2020-06-24 12:00 ` Nikolay Borisov
2020-06-24 12:16 ` Hans van Kranenburg
2020-06-24 12:18 ` Johannes Thumshirn
2020-06-24 14:15 ` kernel test robot
2020-06-24 15:40 ` David Sterba
2020-06-25 7:48 ` Johannes Thumshirn
2020-06-24 15:31 ` David Sterba
2020-06-25 2:26 ` Hans van Kranenburg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200624153604.GR27795@twin.jikos.cz \
--to=dsterba@suse.cz \
--cc=Johannes.Thumshirn@wdc.com \
--cc=hans@knorrie.org \
--cc=linux-btrfs@vger.kernel.org \
--cc=nborisov@suse.com \
--cc=quwenruo.btrfs@gmx.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox