btrfs: add send/receive support for reading/writing compressed data
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v15 Latest7 patches 7 repliesIn review
- v147 patches 11 repliesSuperseded
- v1317 patches 5 repliesSuperseded
Earlier versions · 3
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v12 | 17 patches | 22 replies | Superseded | |
| v11 | 14 patches | 22 replies | Superseded | |
| v10 | 14 patches | 19 replies | Superseded |
Patches in v15 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | btrfs: send: remove unused send_ctx::{total,cmd}_send_sizefs/ | +0 | 0 replies | |
| 2/7 | btrfs: send: explicitly number commands and attributesfs/ fs/ | +54 | 1 reply | |
| 3/7 | btrfs: add send stream v2 definitionsfs/ fs/ include/ | +44 | 6 replies | |
| 4/7 | btrfs: send: write larger chunks when using stream v2fs/ | +39 | 0 replies | |
| 5/7 | btrfs: send: get send buffer pages for protocol v2fs/ | +23 | 0 replies | |
| 6/7 | btrfs: send: send compressed extents with encoded writesfs/ fs/ fs/ | +228 | 0 replies | |
| 7/7 | btrfs: send: enable support for stream v2 and compressed writesfs/ fs/ include/ | +8 | 0 replies |
Reviews trailers per patch
6 of 7 patches have a Reviewed-by or Acked-by.
| Patch | Sweet Tea Dorminy | Nikolay Borisov | Josef Bacik |
|---|---|---|---|
| 1/7 | R-b | ||
| 2/7 | R-b | ||
| 3/7 | R-b | R-b | |
| 4/7 | R-b | R-b | |
| 5/7 | |||
| 6/7 | R-b | ||
| 7/7 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH v15 0/7] btrfs: add send/receive support for reading/writing compressed data
From: Omar Sandoval <[email protected]>
This series adds support for sending compressed data via Btrfs send and btrfs-progs support for sending/receiving compressed data and writing it with BTRFS_IOC_ENCODED_WRITE, which was previously merged into misc-next. See the previous posting for more details and benchmarks [1].
Patches 1 and 2 are cleanups for Btrfs send. Patches 3-5 prepare some protocol changes for send stream v2. Patch 6 implements compressed send. Patch 7 enables send stream v2 and compressed send in the send ioctl when requested.
Changes since v14 [2]:
- Added a comment about "put_data" to patch 4.
- Replaced hard-coded 2s with sizeof(__le16) in patch 4.
- Replaced patch 5 with new approach using vmalloc() + vmalloc_to_page() (instead of alloc_page() + vmap()) as suggested by Sweet Tea.
- Added Sweet Tea's reviewed-bys.
- Rebased on latest misc-next branch.
The btrfs-progs patches are unchanged since v14, so I'm not resending them this time.
1: https://lore.kernel.org/linux-btrfs/[email protected]/
2: https://lore.kernel.org/linux-btrfs/[email protected]/
Omar Sandoval (7):
btrfs: send: remove unused send_ctx::{total,cmd}_send_size
btrfs: send: explicitly number commands and attributes
btrfs: add send stream v2 definitions
btrfs: send: write larger chunks when using stream v2
btrfs: send: get send buffer pages for protocol v2
btrfs: send: send compressed extents with encoded writes
btrfs: send: enable support for stream v2 and compressed writes
fs/btrfs/ctree.h | 6 + fs/btrfs/inode.c | 13 +- fs/btrfs/send.c | 320 +++++++++++++++++++++++++++++++++---- fs/btrfs/send.h | 142 +++++++++------- include/uapi/linux/btrfs.h | 10 +- 5 files changed, 392 insertions(+), 99 deletions(-)
Signature · 1 line
2.35.1