[Libguestfs] [PATCH v3.1 0/9] uuid: add btrfs uuid change support and set_uuid_random

Chen Hanxiao chenhanxiao at cn.fujitsu.com
Fri Jun 26 09:35:35 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.

v3.1: fix typos
v3: set errno if feature is not available.

Chen Hanxiao (9):
  uuid: add support to change uuid of btrfs partition
  uuid: use existing function of ext2
  uuid: use newly introduced xfs_set_uuid of xfs
  uuid: use newly introduced swap_set_uuid
  New API: btrfs_set_uuid_random
  New API: set_e2uuid_random
  New API: swap_set_uuid_random
  New API: xfs_set_uuid_random
  New API: set_uuid_random

 daemon/btrfs.c                 | 81 ++++++++++++++++++++++++++++++++++++++++++
 daemon/daemon.h                | 10 ++++++
 daemon/ext2.c                  | 15 ++++++++
 daemon/swap.c                  | 48 +++++++++++++++++++++++++
 daemon/uuids.c                 | 71 +++++++++++++++++-------------------
 daemon/xfs.c                   | 14 ++++++++
 generator/actions.ml           | 16 +++++++++
 src/MAX_PROC_NR                |  2 +-
 tests/btrfs/test-btrfs-misc.pl | 28 +++++++++++++++
 9 files changed, 245 insertions(+), 40 deletions(-)

-- 
2.1.0




More information about the Libguestfs mailing list