All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 00/13]  Introduce offline fsid/chunk tree uuid change for btrfstune.
@ 2015-05-11  8:08 Qu Wenruo
  2015-05-11  8:08 ` [PATCH v2 01/13] btrfs-progs: Add CHANGIND_FSID and CHANGING_CHUNK_TREE_ID super flags Qu Wenruo
                   ` (14 more replies)
  0 siblings, 15 replies; 19+ messages in thread
From: Qu Wenruo @ 2015-05-11  8:08 UTC (permalink / raw)
  To: linux-btrfs

This patchset will introduce offline fsid/chunk tree uuid change
function to 'btrfs property' command, with "fsid" and "chunk_tree_uuid"
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 btrfs super flags:
BTRFS_SUPER_FLAG_CHANGING_FSID and BTRFS_SUPER_FLAG_CHANGING_CHUNK_TREE_ID

Btrfs-progs and kernel will abort open_ctree if these super flags is found.
Btrfs-progs has the exception if OPEN_CTREE_IGNORE_FSID/CHUNK_TREE_ID is
given, allowing user to finished unfinished uuid changing process.

Along with new super_flags, also add human-readable flags output for
btrfs-show-super command.

Qu Wenruo (13):
  btrfs-progs: Add CHANGIND_FSID and CHANGING_CHUNK_TREE_ID super flags.
  btrfs-progs: Use unified function to implement print_readable_*_flag()
        function.
  btrfs-progs: Make btrfs-show-super print human readable flag for super
        flags.
  btrfs-progs: Add open_ctree check for uuid changing.
  btrfs-progs: Export write_tree_block().
  btrfs-progs: Introduce change_header_uuid() function.
  btrfs-progs: Introduce change_extents_uuid() function.
  btrfs-progs: Introduce change_device_uuid() function.
  btrfs-progs: Introduce change_devices_uuid() function.
  btrfs-progs: Introduce change_id_prepare() and change_id_done()    
    functions.
  btrfs-progs: Introduce change_uuid() function.
  btrfs-progs: Add offline type for btrfs property.
  btrfs-progs: Update Doc for btrfs-property

 Documentation/btrfs-property.asciidoc |  17 +-
 btrfs-show-super.c                    |  48 ++++-
 cmds-property.c                       |   5 +-
 ctree.h                               |   6 +
 disk-io.c                             |  23 +-
 disk-io.h                             |   6 +
 props.c                               | 386 ++++++++++++++++++++++++++++++++++
 props.h                               |   1 +
 8 files changed, 483 insertions(+), 9 deletions(-)

-- 
2.4.0


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

end of thread, other threads:[~2015-05-14 13:32 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-11  8:08 [PATCH v2 00/13] Introduce offline fsid/chunk tree uuid change for btrfstune Qu Wenruo
2015-05-11  8:08 ` [PATCH v2 01/13] btrfs-progs: Add CHANGIND_FSID and CHANGING_CHUNK_TREE_ID super flags Qu Wenruo
2015-05-13 13:57   ` David Sterba
2015-05-11  8:08 ` [PATCH v2 02/13] btrfs-progs: Use unified function to implement print_readable_*_flag() function Qu Wenruo
2015-05-11  8:08 ` [PATCH v2 03/13] btrfs-progs: Make btrfs-show-super print human readable flag for super flags Qu Wenruo
2015-05-11  8:08 ` [PATCH v2 04/13] btrfs-progs: Add open_ctree check for uuid changing Qu Wenruo
2015-05-11  8:08 ` [PATCH v2 05/13] btrfs-progs: Export write_tree_block() Qu Wenruo
2015-05-11  8:08 ` [PATCH v2 06/13] btrfs-progs: Introduce change_header_uuid() function Qu Wenruo
2015-05-11  8:08 ` [PATCH v2 07/13] btrfs-progs: Introduce change_extents_uuid() function Qu Wenruo
2015-05-11  8:08 ` [PATCH v2 08/13] btrfs-progs: Introduce change_device_uuid() function Qu Wenruo
2015-05-11  8:08 ` [PATCH v2 09/13] btrfs-progs: Introduce change_devices_uuid() function Qu Wenruo
2015-05-11  8:08 ` [PATCH v2 10/13] btrfs-progs: Introduce change_id_prepare() and change_id_done() functions Qu Wenruo
2015-05-11  8:08 ` [PATCH v2 11/13] btrfs-progs: Introduce change_uuid() function Qu Wenruo
2015-05-11  8:08 ` [PATCH v2 12/13] btrfs-progs: Add offline type for btrfs property Qu Wenruo
2015-05-11  8:08 ` [PATCH v2 13/13] btrfs-progs: Update Doc for btrfs-property Qu Wenruo
2015-05-13 13:56 ` [PATCH v2 00/13] Introduce offline fsid/chunk tree uuid change for btrfstune David Sterba
2015-05-13 16:03 ` David Sterba
2015-05-14  0:33   ` Qu Wenruo
2015-05-14 13:32     ` David Sterba

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.