public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Josef Bacik <josef@toxicpanda.com>
To: linux-btrfs@vger.kernel.org, kernel-team@fb.com
Subject: [PATCH 00/15] btrfs-progs: initial snapshot_id support
Date: Mon,  7 Mar 2022 17:17:34 -0500	[thread overview]
Message-ID: <cover.1646691255.git.josef@toxicpanda.com> (raw)

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


             reply	other threads:[~2022-03-07 22:17 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-07 22:17 Josef Bacik [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1646691255.git.josef@toxicpanda.com \
    --to=josef@toxicpanda.com \
    --cc=kernel-team@fb.com \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox