Re: [PATCH v2] btrfs: send: add support for fs-verity

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

 



On Thu, Jul 28, 2022 at 11:11:42AM -0700, Boris Burkov wrote:
> --- a/fs/btrfs/send.h
> +++ b/fs/btrfs/send.h
> @@ -92,8 +92,11 @@ enum btrfs_send_cmd {
>  	BTRFS_SEND_C_ENCODED_WRITE	= 25,
>  	BTRFS_SEND_C_MAX_V2		= 25,
>  
> +	/* Version 3 */
> +	BTRFS_SEND_C_ENABLE_VERITY	= 26,

Regarding the name, same name for ioctl and command is a good idea, for
potential future verity extensions we could add more and having plain
'VERITY' would not be ideal. The other ioctl is 'measure', so I thought
of something like consistency check during the stream, "verify this
file before continuing".

The command names are either imperative or descriptive, so alternative
name could be VERITY_RECORD or VERITY_DESC that matches the data stored,
the BTRFS_VERITY_DESC_ITEM_KEY .



[Index of Archives]     [linux Cryptography]     [Asterisk App Development]     [PJ SIP]     [Gnu Gatekeeper]     [IETF Sipping]     [Info Cyrus]     [ALSA User]     [Fedora Linux Users]     [Linux SCTP]     [DCCP]     [Gimp]     [Yosemite News]     [Deep Creek Hot Springs]     [Yosemite Campsites]     [ISDN Cause Codes]

  Powered by Linux