linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/8] Introduce offline fsid/chunk tree uuid change for btrfstune.
@ 2015-05-05  6:16 Qu Wenruo
  2015-05-05  6:16 ` [PATCH 1/8] btrfs-progs: Allow open_ctree to ignore fsid mismatch Qu Wenruo
                   ` (8 more replies)
  0 siblings, 9 replies; 21+ messages in thread
From: Qu Wenruo @ 2015-05-05  6:16 UTC (permalink / raw)
  To: linux-btrfs

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


^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2015-05-22 15:20 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-05  6:16 [PATCH 0/8] Introduce offline fsid/chunk tree uuid change for btrfstune Qu Wenruo
2015-05-05  6:16 ` [PATCH 1/8] btrfs-progs: Allow open_ctree to ignore fsid mismatch Qu Wenruo
2015-05-05  6:16 ` [PATCH 2/8] btrfs-progs: Export write_tree_block() Qu Wenruo
2015-05-05  6:16 ` [PATCH 3/8] btrfs-progs: Introduce change_header_uuid() function Qu Wenruo
2015-05-05  6:16 ` [PATCH 4/8] btrfs-progs: Introduce change_extents_uuid() function Qu Wenruo
2015-05-05  6:16 ` [PATCH 5/8] btrfs-progs: Introduce function change_device_uuid() Qu Wenruo
2015-05-05  6:16 ` [PATCH 6/8] btrfs-progs: Introduce change_devices_uuid() function Qu Wenruo
2015-05-05  6:16 ` [PATCH 7/8] btrfs-progs: Introduce change_uuid() function Qu Wenruo
2015-05-05  6:16 ` [PATCH 8/8] btrfs-progs: btrfstune: Introduce new "-u" and "-U" options Qu Wenruo
2015-05-05 15:20 ` [PATCH 0/8] Introduce offline fsid/chunk tree uuid change for btrfstune David Sterba
2015-05-06  0:49   ` Qu Wenruo
2015-05-06 15:43     ` David Sterba
2015-05-08  8:57       ` Qu Wenruo
2015-05-11 16:24         ` David Sterba
2015-05-12  2:09           ` Qu Wenruo
2015-05-12  4:00             ` Anand Jain
2015-05-13  0:54               ` Qu Wenruo
2015-05-13 13:43               ` David Sterba
2015-05-15 15:42                 ` Anand Jain
2015-05-21 16:30                   ` David Sterba
2015-05-22 15:20                     ` Anand Jain

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).