Re: [RFC PATCH] btrfs-progs: prop: add datacow inode property

Nikolay Borisov
2022-04-05T21:15:17Z

On 30.03.22 г. 8:45 ч., Dominique Martinet wrote:
>
> I appreciate it's a trifling feature, but I'd appreciate not having to
> teach our users about chattr if they could only have to manipulate btrfs
> properties so I'd appreciate some feedback!:)
>
> If you just say 'no' I'll bite the bullet and install e2fsprogs just for
> btrfs and document the command, but as things stand my users (embedded
> device developpers) have no way of disabling cow for e.g. database
> workloads and that's not really good long-term.

Just my 2 cents: I think we should strive to rely as much as possible on
the generic infrastructure where we can. The nocow options is one such
case. The way I see it btrfs property is used to manage features which
are indeed specific to btrfs and have no generic alternative.

What's more I don't see how 'chattr +C /some/path' can be considered
'complex' to teach someone, plus chattr is a standard linux utility.