Skip to content

Btrfs-progs: some receive related patches

Stefan Behrens linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest17 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/17Btrfs-progs: Use /proc/mounts instead of /etc/mtabcmds-send.c+1 -10 replies
2/17Btrfs-progs: ignore subvols above BTRFS_LAST_FREE_OBJECTIDsend-utils.c+1 -10 replies
3/17Btrfs-progs: close file descriptor in cmds-send.ccmds-send.c+1 -00 replies
4/17Btrfs-progs: fix a small memory leak in btrfs-list.cbtrfs-list.c+6 -60 replies
5/17Btrfs-progs: add a function to free subvol_uuid_search memorysend-utils.c send-utils.h+24 -00 replies
6/17Btrfs-progs: cleanup subvol_uuid_search memory in btrfs send/receivecmds-receive.c cmds-send.c+3 -00 replies
7/17Btrfs-progs: free memory and close file descriptor in btrfs receivecmds-receive.c+24 -30 replies
8/17Btrfs-progs: Set the root-id for received subvols in btrfs receivecmds-receive.c send-utils.c send-utils.h+24 -01 reply
9/17Btrfs-progs: btrfs-receive: different levels (amount) of debug outputcmds-receive.c+16 -160 replies
10/17Btrfs-progs: small parent_subvol cleanup for cmds-receive.ccmds-receive.c+6 -80 replies
11/17Btrfs-progs: fix bug in find_root_genbtrfs-list.c+1 -10 replies
12/17Btrfs-progs: btrfs-receive optionally honors the end-cmdcmds-receive.c send-stream.c send-stream.h+19 -60 replies
13/17Btrfs-progs: don't allocate one byte too much each timesend-utils.c+2 -20 replies
14/17Btrfs-progs: Fix that BTRFS_FSID_SIZE is used instead of BTRFS_UUID_SIZEcmds-receive.c+1 -10 replies
15/17Btrfs-progs: remove some unused codesend-stream.c+0 -30 replies
16/17Btrfs-progs: allow to receive to relative directoriescmds-receive.c+1 -10 replies
17/17btrfs-progs: Fix the receive code pathingcmds-receive.c cmds-send.c+64 -100 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/17] Btrfs-progs: some receive related patches

Most fixes are trivial.

The one from Alex is fixing a real bug that several users have reported. Alex sent the patch half a year ago and it was not yet integrated.

The patch "Use /proc/mounts instead of /etc/mtab" is a repost.

The patch "btrfs-receive optionally honors the end-cmd" is a preparation step to allow backup tools to multiplex a single communication stream (e.g. a single TCP stream) to carry multiple Btrfs send/receive streams and a request/response handshake. It basically corrects the handling of the "end-cmd" in the send/receive stream. Without, only the closing of the stream (EOF) was terminating the receiver. The change is fully compatible as it is explained in more detail in the commit itself. Unfortunately the change to the sender is only compatible together with a kernel change, it is therefore not part of this patch set.

Everything is also on
git://btrfs.giantdisaster.de/git/btrfs-progs recv1

Alex Lyakas (1):
btrfs-progs: Fix the receive code pathing

Stefan Behrens (16):
Btrfs-progs: Use /proc/mounts instead of /etc/mtab
Btrfs-progs: ignore subvols above BTRFS_LAST_FREE_OBJECTID
Btrfs-progs: close file descriptor in cmds-send.c
Btrfs-progs: fix a small memory leak in btrfs-list.c
Btrfs-progs: add a function to free subvol_uuid_search memory
Btrfs-progs: cleanup subvol_uuid_search memory in btrfs send/receive
Btrfs-progs: free memory and close file descriptor in btrfs receive
Btrfs-progs: Set the root-id for received subvols in btrfs receive
Btrfs-progs: btrfs-receive: different levels (amount) of debug output
Btrfs-progs: small parent_subvol cleanup for cmds-receive.c
Btrfs-progs: fix bug in find_root_gen
Btrfs-progs: btrfs-receive optionally honors the end-cmd
Btrfs-progs: don't allocate one byte too much each time
Btrfs-progs: Fix that BTRFS_FSID_SIZE is used instead of
BTRFS_UUID_SIZE
Btrfs-progs: remove some unused code
Btrfs-progs: allow to receive to relative directories

 btrfs-list.c   |  14 ++---
 cmds-receive.c | 164 ++++++++++++++++++++++++++++++++++++++++++---------------
 cmds-send.c    |  12 ++++-
 send-stream.c  |   9 ++--
 send-stream.h  |   3 +-
 send-utils.c   |  49 +++++++++++++++--
 send-utils.h   |   2 +
 7 files changed, 194 insertions(+), 59 deletions(-)
Signature · 1 line
1.8.2.1