Re: [PATCH] COW and checksumming ioctls

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Zach Brown wrote:
> Hmm.  Do we really want 4 different ioctl commands to turn 2 features on
> and off?  Surely we could have 1 ioctl which updates a bitfield?  Or a
> ioctl that takes an explicit feature enum argument and a boolean which
> indicates that it should be enabled or not?
> 
> (And is ioctl the right interface for this?  maybe it should be xattr
> ops in some defined btrfs string namespace?  I'm just making this up.  I
> feel the the lack of a single comment in the patch, while in keeping
> with the existing precedent in btrfs, leaves a lot of room for wild
> speculation :))

Beyond that, is it really desirable to be able to turn off
checksumming/COW per file?  Or even to be able to do it so easily?

I feel that checksumming is an extremely important feature, and it
scares me even to be able to disable it at all (what if someone
mistakenly does it, and then all of the data is unintentionally
vulnerable?).  But at least if it is only a mount option, the mistake
would have to be at as system level and would be harder to do by accident.

If someone were to turn off checksumming and then turn it back on, I
assume they would lose any continuity of protection that exists if it
stays on, so it would have to be a major and important decision in an
existing filesystem.

						-Joe
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux