Re: [PATCH v2] btrfs: send: prepare for v2 protocol
From: Nikolay Borisov <hidden>
Date: 2021-10-25 06:50:35
On 22.10.21 г. 17:53, David Sterba wrote:
This is the infrastructure part only, without any new updates, thus safe to be applied now and all other changes built on top of it, unless there are further comments. --- This is preparatory work for send protocol update to version 2 and higher. We have many pending protocol update requests but still don't have the basic protocol rev in place, the first thing that must happen is to do the actual versioning support. The protocol version is u32 and is a new member in the send ioctl struct. Validity of the version field is backed by a new flag bit. Old kernels would fail when a higher version is requested. Version protocol 0 will pick the highest supported version, BTRFS_SEND_STREAM_VERSION, that's also exported in sysfs. The version is still unchanged and will be increased once we have new incompatible commands or stream updates. Signed-off-by: David Sterba <dsterba@suse.com>
Reviewed-by: Nikolay Borisov <redacted>