Skip to content

RFC btrfs send stream version 2

Howard McLauchlan linux-btrfs 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest6 patches 1 replyIn review
  2. v1 RFC6 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6btrfs: send, bump stream versionfs/btrfs/send.c fs/btrfs/send.h include/uapi/linux/btrfs.h+47 -30 replies
1/6Btrfs-progs: send, bump stream versioncmds-send.c ioctl.h send-stream.c +1 more+82 -200 replies
2/6btrfs: send, implement total data size command to allow for progress estimationfs/btrfs/send.c+157 -320 replies
2/6Btrfs-progs: send, implement total data size callback and progress reportcmds-receive.c cmds-send.c send-stream.c +1 more+117 -20 replies
3/6btrfs: send, use fallocate command to punch holesfs/btrfs/send.c fs/btrfs/send.h+55 -30 replies
3/6Btrfs-progs: send, implement fallocate command callbackcmds-receive.c send-stream.c send-stream.h+59 -00 replies
4/6btrfs: send, use fallocate command to allocate extentsfs/btrfs/send.c+52 -180 replies
4/6Btrfs-progs: add write and clone commands debug info to receivecmds-receive.c+9 -00 replies
5/6btrfs: add send_stream_version attribute to sysfsfs/btrfs/send.h fs/btrfs/sysfs.c+28 -00 replies
5/6btrfs-progs: add total data size, fallocate to dumpsend-dump.c+18 -10 replies
6/6btrfs: add chattr support for send/receivefs/btrfs/ctree.h fs/btrfs/ioctl.c fs/btrfs/send.c+158 -290 replies
6/6btrfs-progs: add chattr support for send/receivecmds-receive.c send-dump.c send-stream.c +1 more+49 -00 replies

Reviews trailers per patch

4 of 12 patches have a Reviewed-by or Acked-by.

PatchOmar SandovalDavid Sterba
1/6R-b
1/6R-b
2/6
2/6
3/6
3/6
4/6
4/6
5/6R-b R-b
5/6R-b R-b
6/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [RFC PATCH v2 0/6] btrfs send stream version 2

This is v2 of send stream version 2. The goal is to provide proper versioning/compatibility as new features are implemented. v1 can be found here [1].

v2 adds BTRFS_SEND_C_WRITE_COMPRESSED to patch 1 and style fixes/logic simplifications to patches 5,6.

v2 also updates btrfs-progs to reflect BTRFS_SEND_C_WRITE_COMPRESSED and updates the pertinent xfstests to also test the total size command.

As of 4.17-rc7, these changes pass all "send" group xfstests

Cheers,

1: https://patchwork.kernel.org/patch/10388003/

Filipe David Borba Manana (5):
btrfs: send, bump stream version
btrfs: send, implement total data size command to allow for progress
estimation
btrfs: send, use fallocate command to punch holes
btrfs: send, use fallocate command to allocate extents
btrfs: add send_stream_version attribute to sysfs

Howard McLauchlan (1):
btrfs: add chattr support for send/receive

 fs/btrfs/ctree.h           |   2 +
 fs/btrfs/ioctl.c           |   2 +-
 fs/btrfs/send.c            | 495 +++++++++++++++++++++++++++++++------
 fs/btrfs/send.h            |  27 +-
 fs/btrfs/sysfs.c           |  27 ++
 include/uapi/linux/btrfs.h |  21 +-
 6 files changed, 493 insertions(+), 81 deletions(-)
Signature · 1 line
2.17.0