]> git.ipfire.org Git - thirdparty/linux.git/commit
btrfs: remove incomplete metadata_uuid conversion fixup logic
authorAnand Jain <anand.jain@oracle.com>
Wed, 20 Sep 2023 21:51:14 +0000 (05:51 +0800)
committerDavid Sterba <dsterba@suse.com>
Thu, 12 Oct 2023 14:44:13 +0000 (16:44 +0200)
commit5966930dfd7741cfa6a41cd182c7cf4dfc1a4c95
treebf2746f768a7b6c5232a42ff7d3a3313a1324779
parent197a9ecee68aa7706dea47b6dff8d2edbfb214f0
btrfs: remove incomplete metadata_uuid conversion fixup logic

Previous commit ("btrfs: reject devices with CHANGING_FSID_V2") has
stopped the assembly of devices with the CHANGING_FSID_V2 flag in the
kernel. Such devices can be scanned but will not be registered and can't
be mounted without a manual fix by btrfstune.  Remove the related logic
and now unused code.

The original motivation was to allow an interrupted partial conversion
fix itself on next mount, in case the system has to be rebooted. This is
a convenience but brings a lot of complexity the device scanning and
handling the partial states.  It's hard to estimate if this was ever
needed in practice, expecting the typical use case like a manual
conversion of an unmounted filesystem where the user can verify the
success and rerun it eventually.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
[ add historical context ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c
fs/btrfs/volumes.h