public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/15] btrfs-progs: initial snapshot_id support
@ 2022-03-07 22:17 Josef Bacik
  2022-03-07 22:17 ` [PATCH 01/15] btrfs-progs: use btrfs_item_nr_offset() in btrfs_leaf_data Josef Bacik
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: Josef Bacik @ 2022-03-07 22:17 UTC (permalink / raw)
  To: linux-btrfs, kernel-team

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(-)

-- 
2.26.3


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2022-03-07 22:18 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-07 22:17 [PATCH 00/15] btrfs-progs: initial snapshot_id support Josef Bacik
2022-03-07 22:17 ` [PATCH 01/15] btrfs-progs: use btrfs_item_nr_offset() in btrfs_leaf_data Josef Bacik
2022-03-07 22:17 ` [PATCH 02/15] btrfs-progs: use item/node helpers instead of offsetof in ctree.c Josef Bacik
2022-03-07 22:17 ` [PATCH 03/15] btrfs-progs: image: use the appropriate offset helpers Josef Bacik
2022-03-07 22:17 ` [PATCH 04/15] btrfs-progs: mkfs: add a helper for temp buffer clearing Josef Bacik
2022-03-07 22:17 ` [PATCH 05/15] btrfs-progs: move the buffer init code to btrfs_alloc_free_block Josef Bacik
2022-03-07 22:17 ` [PATCH 06/15] btrfs-progs: fix item check to use the size helpers Josef Bacik
2022-03-07 22:17 ` [PATCH 07/15] btrfs-progs: add snapshot_id to the btrfs_header Josef Bacik
2022-03-07 22:17 ` [PATCH 08/15] btrfs-progs: make __BTRFS_LEAF_DATA_SIZE handle extent tree v2 Josef Bacik
2022-03-07 22:17 ` [PATCH 09/15] btrfs-progs: adjust the leaf/node math for header_v2 Josef Bacik
2022-03-07 22:17 ` [PATCH 10/15] btrfs-progs: setup the extent tree v2 header properly Josef Bacik
2022-03-07 22:17 ` [PATCH 11/15] btrfs-progs: add new roots to the dirty root list Josef Bacik
2022-03-07 22:17 ` [PATCH 12/15] btrfs-progs: delete the btrfs_create_root helper Josef Bacik
2022-03-07 22:17 ` [PATCH 13/15] btrfs-progs: add a snapshot_id to the btrfs_root_item Josef Bacik
2022-03-07 22:17 ` [PATCH 14/15] btrfs-progs: inherit the root snapshot id in the buffer Josef Bacik
2022-03-07 22:17 ` [PATCH 15/15] btrfs-progs: add new COW rules for extent tree v2 Josef Bacik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox