This patchset will introduce offline fsid/chunk tree uuid change function to btrfstune command, with "-u" and "-U" options respectively. The implement is in-place btrfs_header modification, without transaction protection. So the uuid change can be done on any valid image even it is already full. Since we don't use transaction to protect the convert, it's possible one can stop the running convert progress, causing the fs in a inconsistent status and unable to be mounted. To avoid such problem, we introduce new open ctree flags OPEN_CTREE_IGNORE_FSID, allowing btrfstune to finish the convert. Qu Wenruo (8): btrfs-progs: Allow open_ctree to ignore fsid mismatch. btrfs-progs: Export write_tree_block(). btrfs-progs: Introduce change_header_uuid() function. btrfs-progs: Introduce change_extents_uuid() function. btrfs-progs: Introduce function change_device_uuid(). btrfs-progs: Introduce change_devices_uuid() function. btrfs-progs: Introduce change_uuid() function. btrfs-progs: btrfstune: Introduce new "-u" and "-U" options. Documentation/btrfstune.asciidoc | 12 +- btrfstune.c | 288 ++++++++++++++++++++++++++++++++++++++- ctree.h | 3 + disk-io.c | 9 +- disk-io.h | 6 + 5 files changed, 309 insertions(+), 9 deletions(-) -- 2.3.7 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
