mbox series

[0/5,v3] btrfs-progs: recover from failed metadata_uuid port kernel

Message ID cover.1692963810.git.anand.jain@oracle.com (mailing list archive)
Headers show
Series btrfs-progs: recover from failed metadata_uuid port kernel | expand

Message

Anand Jain Aug. 25, 2023, 2:47 p.m. UTC
The earlier revision, v2, of this patchset consisted of 16 patches, out of
which 12 have already been merged into the devel branch.

 v2: https://patchwork.kernel.org/project/linux-btrfs/list/?series=776027

This current patchset contains the remaining unmerged patches and
addresses the reported bug:

 bug report: https://github.com/kdave/btrfs-progs/actions/runs/5956097489/job/16156138260

In v3 of this patchset, btrfs_fs_devices::inconsistent_super variable
added, which helps determine whether all the devices in the fs_devices
share the same fsid and metadata_uuid.

Anand Jain (5):
  btrfs-progs: cleanup duplicate check metadata_uuid flag
  btrfs-progs: tune use the latest bdev in fs_devices for super_copy
  btrfs-progs: add support to fix superblock with CHANGING_FSID_V2 flag
  btrfs-progs: recover from the failed btrfstune -m|M
  btrfs-progs: test btrfstune -m|M ability to fix previous failures

 kernel-shared/volumes.c                    | 193 +++++++++++++++++++--
 kernel-shared/volumes.h                    |   1 +
 tests/misc-tests/034-metadata-uuid/test.sh |  70 ++++++--
 tune/change-metadata-uuid.c                |  48 ++++-
 tune/change-uuid.c                         |   4 +-
 tune/main.c                                |   6 +-
 tune/tune.h                                |   2 -
 7 files changed, 281 insertions(+), 43 deletions(-)

Comments

David Sterba Aug. 28, 2023, 3:31 p.m. UTC | #1
On Fri, Aug 25, 2023 at 10:47:46PM +0800, Anand Jain wrote:
> The earlier revision, v2, of this patchset consisted of 16 patches, out of
> which 12 have already been merged into the devel branch.
> 
>  v2: https://patchwork.kernel.org/project/linux-btrfs/list/?series=776027
> 
> This current patchset contains the remaining unmerged patches and
> addresses the reported bug:
> 
>  bug report: https://github.com/kdave/btrfs-progs/actions/runs/5956097489/job/16156138260
> 
> In v3 of this patchset, btrfs_fs_devices::inconsistent_super variable
> added, which helps determine whether all the devices in the fs_devices
> share the same fsid and metadata_uuid.
> 
> Anand Jain (5):
>   btrfs-progs: cleanup duplicate check metadata_uuid flag
>   btrfs-progs: tune use the latest bdev in fs_devices for super_copy
>   btrfs-progs: add support to fix superblock with CHANGING_FSID_V2 flag
>   btrfs-progs: recover from the failed btrfstune -m|M
>   btrfs-progs: test btrfstune -m|M ability to fix previous failures

The first patch has been folded in.  I'll postpone the rest of the
series after the next release, ETA 6.5.1, I need to refresh the
metadata_uuid error states.