[Libguestfs] [PATCH 0/5] uuid: add btrfs uuid change support and some rework

Chen Hanxiao chenhanxiao at cn.fujitsu.com
Wed Jun 24 07:54:02 UTC 2015


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

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

-- Introduce new API: btrfstune_set_uuid_random


Chen Hanxiao (5):
  uuid: add support to change uuid of btrfs partition
  uuid: use existed function of ext2
  uuid: use newly introduced do_xfs_admin_uuid of xfs
  uuid: use existed do_mkswap_U
  New API: btrfstune_set_uuid_random

 daemon/btrfs.c                 | 81 ++++++++++++++++++++++++++++++++++++++++++
 daemon/daemon.h                |  6 ++++
 daemon/uuids.c                 | 44 +++++------------------
 daemon/xfs.c                   |  7 ++++
 generator/actions.ml           | 18 ++++++++++
 src/MAX_PROC_NR                |  2 +-
 tests/btrfs/test-btrfs-misc.pl |  6 ++++
 7 files changed, 128 insertions(+), 36 deletions(-)

-- 
2.1.0




More information about the Libguestfs mailing list