btrfs: send: add stream v2 definitions
authorOmar Sandoval <osandov@fb.com>
Thu, 17 Mar 2022 17:25:39 +0000 (10:25 -0700)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Jul 2022 15:45:32 +0000 (17:45 +0200)
commitb7c14f23fb604fc66edae7514ed9b4b93930b5ba
tree4446835cabec6d9d17c8e8e6b665f15400540096
parent54cab6aff811d328c5add37e0faf32f6328741ea
btrfs: send: add stream v2 definitions

This adds the definitions of the new commands for send stream version 2
and their respective attributes: fallocate, FS_IOC_SETFLAGS (a.k.a.
chattr), and encoded writes. It also documents two changes to the send
stream format in v2: the receiver shouldn't assume a maximum command
size, and the DATA attribute is encoded differently to allow for writes
larger than 64k. These will be implemented in subsequent changes, and
then the ioctl will accept the new version and flag.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/send.c
fs/btrfs/send.h
include/uapi/linux/btrfs.h