Skip to content

btrfs-progs: initial snapshot_id support

Josef Bacik linux-btrfs 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest15 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15btrfs-progs: use btrfs_item_nr_offset() in btrfs_leaf_datakernel-shared/ctree.h+1 -10 replies
2/15btrfs-progs: use item/node helpers instead of offsetof in ctree.ckernel-shared/ctree.c+2 -20 replies
3/15btrfs-progs: image: use the appropriate offset helpersimage/main.c+2 -30 replies
4/15btrfs-progs: mkfs: add a helper for temp buffer clearingmkfs/common.c+16 -140 replies
5/15btrfs-progs: move the buffer init code to btrfs_alloc_free_blockcheck/main.c kernel-shared/ctree.c kernel-shared/disk-io.c +1 more+11 -750 replies
6/15btrfs-progs: fix item check to use the size helperskernel-shared/disk-io.c+6 -80 replies
7/15btrfs-progs: add snapshot_id to the btrfs_headerkernel-shared/ctree.h+12 -20 replies
8/15btrfs-progs: make __BTRFS_LEAF_DATA_SIZE handle extent tree v2convert/main.c kernel-shared/ctree.h kernel-shared/disk-io.c +1 more+16 -70 replies
9/15btrfs-progs: adjust the leaf/node math for header_v2kernel-shared/ctree.h+96 -780 replies
10/15btrfs-progs: setup the extent tree v2 header properlykernel-shared/extent-tree.c mkfs/common.c+13 -10 replies
11/15btrfs-progs: add new roots to the dirty root listkernel-shared/disk-io.c kernel-shared/free-space-tree.c mkfs/main.c+2 -20 replies
12/15btrfs-progs: delete the btrfs_create_root helperkernel-shared/ctree.c kernel-shared/ctree.h mkfs/main.c+9 -1030 replies
13/15btrfs-progs: add a snapshot_id to the btrfs_root_itemkernel-shared/ctree.h kernel-shared/disk-io.c+13 -10 replies
14/15btrfs-progs: inherit the root snapshot id in the bufferkernel-shared/extent-tree.c+2 -10 replies
15/15btrfs-progs: add new COW rules for extent tree v2kernel-shared/ctree.c+12 -10 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/15] btrfs-progs: initial snapshot_id support

Hello,

This is the less complicated portion of the snapshot_id support. These patches add the on-disk definitions to the btrfs_header and btrfs_root_item to keep track of the snapshot_id. This series does not include the extent tree changes that will be needed as well, as those will require a lot of changes as well. The complicated part of this is we're growing the btrfs_header size, so we've had to adjust all of the accessors to take into account the new math. This passes xfstests with the btrfs-progs related patches. Currently nothing actually messes with the snapshot_id, as this will be handled later when I re-instate snapshot support for extent tree v2. Thanks,

Josef

Josef Bacik (15):
btrfs-progs: use btrfs_item_nr_offset() in btrfs_leaf_data
btrfs-progs: use item/node helpers instead of offsetof in ctree.c
btrfs-progs: image: use the appropriate offset helpers
btrfs-progs: mkfs: add a helper for temp buffer clearing
btrfs-progs: move the buffer init code to btrfs_alloc_free_block
btrfs-progs: fix item check to use the size helpers
btrfs-progs: add snapshot_id to the btrfs_header
btrfs-progs: make __BTRFS_LEAF_DATA_SIZE handle extent tree v2
btrfs-progs: adjust the leaf/node math for header_v2
btrfs-progs: setup the extent tree v2 header properly
btrfs-progs: add new roots to the dirty root list
btrfs-progs: delete the btrfs_create_root helper
btrfs-progs: add a snapshot_id to the btrfs_root_item
btrfs-progs: inherit the root snapshot id in the buffer
btrfs-progs: add new COW rules for extent tree v2

 check/main.c                    |  14 ---
 convert/main.c                  |   2 +-
 image/main.c                    |   5 +-
 kernel-shared/ctree.c           | 166 +++-----------------------
 kernel-shared/ctree.h           | 199 +++++++++++++++++++-------------
 kernel-shared/disk-io.c         |  38 +++---
 kernel-shared/extent-tree.c     |  18 +++
 kernel-shared/free-space-tree.c |   1 -
 mkfs/common.c                   |  36 +++---
 mkfs/main.c                     |  21 ++--
 10 files changed, 207 insertions(+), 293 deletions(-)
Signature · 1 line
2.26.3