btrfs-progs: initial snapshot_id support
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest15 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/15 | btrfs-progs: use btrfs_item_nr_offset() in btrfs_leaf_datakernel-shared/ | +1 | 0 replies | |
| 2/15 | btrfs-progs: use item/node helpers instead of offsetof in ctree.ckernel-shared/ | +2 | 0 replies | |
| 3/15 | btrfs-progs: image: use the appropriate offset helpersimage/ | +2 | 0 replies | |
| 4/15 | btrfs-progs: mkfs: add a helper for temp buffer clearingmkfs/ | +16 | 0 replies | |
| 5/15 | btrfs-progs: move the buffer init code to btrfs_alloc_free_blockcheck/ kernel-shared/ kernel-shared/ +1 more | +11 | 0 replies | |
| 6/15 | btrfs-progs: fix item check to use the size helperskernel-shared/ | +6 | 0 replies | |
| 7/15 | btrfs-progs: add snapshot_id to the btrfs_headerkernel-shared/ | +12 | 0 replies | |
| 8/15 | btrfs-progs: make __BTRFS_LEAF_DATA_SIZE handle extent tree v2convert/ kernel-shared/ kernel-shared/ +1 more | +16 | 0 replies | |
| 9/15 | btrfs-progs: adjust the leaf/node math for header_v2kernel-shared/ | +96 | 0 replies | |
| 10/15 | btrfs-progs: setup the extent tree v2 header properlykernel-shared/ mkfs/ | +13 | 0 replies | |
| 11/15 | btrfs-progs: add new roots to the dirty root listkernel-shared/ kernel-shared/ mkfs/ | +2 | 0 replies | |
| 12/15 | btrfs-progs: delete the btrfs_create_root helperkernel-shared/ kernel-shared/ mkfs/ | +9 | 0 replies | |
| 13/15 | btrfs-progs: add a snapshot_id to the btrfs_root_itemkernel-shared/ kernel-shared/ | +13 | 0 replies | |
| 14/15 | btrfs-progs: inherit the root snapshot id in the bufferkernel-shared/ | +2 | 0 replies | |
| 15/15 | btrfs-progs: add new COW rules for extent tree v2kernel-shared/ | +12 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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