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

Chen Hanxiao chenhanxiao at cn.fujitsu.com
Fri Jun 26 07:00:44 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 existing functions.

v3: set errno if feature is not available.

Chen Hanxiao (4):
  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

 daemon/btrfs.c                 | 60 ++++++++++++++++++++++++++++++++++++++++++
 daemon/daemon.h                |  5 ++++
 daemon/swap.c                  | 16 +++++++++++
 daemon/uuids.c                 | 48 ++++-----------------------------
 daemon/xfs.c                   |  7 +++++
 tests/btrfs/test-btrfs-misc.pl | 17 ++++++++++++
 6 files changed, 110 insertions(+), 43 deletions(-)

-- 
2.1.0




More information about the Libguestfs mailing list