]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit543fd36d18a7cfa06ff651f18cd17deeec90cca1
tree4446835cabec6d9d17c8e8e6b665f15400540096
parent82200711bfc78f3beb02f037d4bbca09630764de
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