Displaying 2 results from an estimated 2 matches for "2b0cae9".
2015 Jun 30
0
[PATCH v4 6/7] daemon: add functions for setting random uuid of fs
...nxiao@cn.fujitsu.com>
---
daemon/btrfs.c | 21 +++++++++++++++++++++
daemon/daemon.h | 4 ++++
daemon/ext2.c | 15 +++++++++++++++
daemon/swap.c | 13 +++++++++++++
daemon/xfs.c | 7 +++++++
5 files changed, 60 insertions(+)
diff --git a/daemon/btrfs.c b/daemon/btrfs.c
index 4cdc6a7..2b0cae9 100644
--- a/daemon/btrfs.c
+++ b/daemon/btrfs.c
@@ -874,6 +874,27 @@ btrfs_set_uuid (const char *device, const char *uuid)
return 0;
}
+int
+btrfs_set_uuid_random (const char *device)
+{
+ CLEANUP_FREE char *err = NULL;
+ int r;
+ int has_uuid_opts = test_btrfstune_uuid_opt();
+
+ if (ha...
2015 Jun 30
13
[PATCH v4 0/7] uuid: add btrfs uuid change support and set_uuid_random
- 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.
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 (7):