mbox series

[0/8] Implement progs support for removing received uuid on RW vols

Message ID 20210913131729.37897-1-nborisov@suse.com (mailing list archive)
Headers show
Series Implement progs support for removing received uuid on RW vols | expand

Message

Nikolay Borisov Sept. 13, 2021, 1:17 p.m. UTC
This series is the userspace counter part to a kernel patch titled:
"btrfs: Remove received information from snapshot on ro->rw switch". This will
mainly serve people running old kernels that won't have this patch to be able to
remove received uuid et al from snapshots which have been switched RO->RW. This
is to ensure consistency.

First 3 patches are preparatory ones which pull needed code from the kernel as
well as removing some arguments making respective functions as close to their
kernel counterparts as possible. This enables to simply copy btrfs_uuid_tree_remove
with no changes from the kernel.

Next 2 patches implement detection and repair support for RO->RW-switched volumes
which have been received. And the final patch is an fs image with a received
subvolume that has been switched to RW following a receive.

Nikolay Borisov (8):
  btrfs-progs: Add btrfs_is_empty_uuid
  btrfs-progs: Remove root argument from btrfs_fixup_low_keys
  btrfs-progs: Remove fs_info argument from leaf_data_end
  btrfs-progs: Remove root argument from btrfs_truncate_item
  btrfs-progs: Add btrfs_uuid_tree_remove
  btrfs-progs: check/original: Implement removing received data for RW
    subvols
  btrfs-progs: check/lowmem: Implement received info clearing for RW
    volumes
  btrfs-progs: tests: Add test for received information removal

 check/main.c                                  |  48 ++++++++-
 check/mode-lowmem.c                           |  38 +++++++
 kernel-shared/ctree.c                         |  62 +++++-------
 kernel-shared/ctree.h                         |  12 ++-
 kernel-shared/dir-item.c                      |   2 +-
 kernel-shared/extent-tree.c                   |   2 +-
 kernel-shared/file-item.c                     |   4 +-
 kernel-shared/inode-item.c                    |   4 +-
 kernel-shared/uuid-tree.c                     |  93 ++++++++++++++++++
 .../050-subvol-recv-clear/test.raw.xz         | Bin 0 -> 493524 bytes
 10 files changed, 216 insertions(+), 49 deletions(-)
 create mode 100644 tests/fsck-tests/050-subvol-recv-clear/test.raw.xz

--
2.17.1