btrfs-progs/tune
Anand Jain cabf70c7b8 btrfs-progs: tune: recover from failed btrfstune -m|M
Currently, to fix device following the write failure of one or more devices
during btrfstune -m|M, we rely on the kernel's ability to reassemble devices,
even when they possess distinct fsids.

Kernel hinges combinations of metadata_uuid and generation number, with
additional cues taken from the fsid and the BTRFS_SUPER_FLAG_CHANGING_FSID_V2
flag. This patch adds this logic to btrfs-progs.

In complex scenarios (such as multiple fsids with the same metadata_uuid and
matching generation), user intervention becomes necessary to resolve the
situations which btrfs-progs can do better.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2023-10-03 01:11:55 +02:00
..
change-csum.c btrfs-progs: fix more typos found by codespell 2023-08-28 17:24:24 +02:00
change-metadata-uuid.c btrfs-progs: tune: recover from failed btrfstune -m|M 2023-10-03 01:11:55 +02:00
change-uuid.c btrfs-progs: tune: recover from failed btrfstune -m|M 2023-10-03 01:11:55 +02:00
convert-bgt.c btrfs-progs: fix -Wmissing-prototypes warnings 2023-05-26 18:02:31 +02:00
main.c btrfs-progs: tune: use the latest bdev in fs_devices for super_copy 2023-10-03 01:11:55 +02:00
quota.c btrfs-progs: tune: add support for squota 2023-10-03 01:11:55 +02:00
seeding.c btrfs-progs: fix -Wmissing-prototypes warnings 2023-05-26 18:02:31 +02:00
tune.h btrfs-progs: tune: recover from failed btrfstune -m|M 2023-10-03 01:11:55 +02:00