[Libguestfs] [PATCH v5 0/3] uuid: add btrfs uuid change support and set_uuid_random

Chen Hanxiao chenhanxiao at cn.fujitsu.com
Wed Jul 1 09:21:11 UTC 2015


- Btrfs-progs v4.1 introduced new feature of changing
  uuid of btrfs partition.
  This patch add support of this.

- Introduce set_uuid_random

- uuids.c did a lot of deplicated work for changing uuid
  of fs. Use existing functions.

v5: use NOT_SUPPORTED macro
    improve testcases
v4: introduce get_random_uuid
    improve testcases
    squash internal API patches
v3.1: fix typos
v3: set errno if feature is not available.

Chen Hanxiao (3):
  uuid: add support to change uuid of btrfs partition
  uuid: use newly introduced swap_set_uuid
  New API: set_uuid_random

 daemon/btrfs.c                 | 77 ++++++++++++++++++++++++++++++++++++++++++
 daemon/daemon.h                |  8 +++++
 daemon/ext2.c                  |  6 ++++
 daemon/swap.c                  | 16 +++++++++
 daemon/uuids.c                 | 56 ++++++++++++++++++------------
 daemon/xfs.c                   |  7 ++++
 generator/actions.ml           | 16 +++++++++
 src/MAX_PROC_NR                |  2 +-
 tests/btrfs/test-btrfs-misc.pl | 35 +++++++++++++++++++
 9 files changed, 201 insertions(+), 22 deletions(-)

-- 
2.1.0




More information about the Libguestfs mailing list