[PATCH v2 07/29] xfsprogs: Stop using platform_uuid_generate()

Pavel Reichl
2021-08-06T21:23:38Z

---
copy/xfs_copy.c | 2 +-
db/sb.c | 2 +-
mkfs/xfs_mkfs.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/copy/xfs_copy.c b/copy/xfs_copy.c
index 1f57399a..5f8b5c57 100644
--- a/copy/xfs_copy.c
+++ b/copy/xfs_copy.c
@@ -946,7 +946,7 @@ main(int argc, char **argv)

for (i = 0, tcarg = targ; i < num_targets; i++, tcarg++) {
if (!duplicate)
- platform_uuid_generate(&tcarg->uuid);
+ uuid_generate(tcarg->uuid);
else
uuid_copy(tcarg->uuid, mp->m_sb.sb_uuid);

diff --git a/db/sb.c b/db/sb.c
index 7017e1e5..b668fc68 100644
--- a/db/sb.c
+++ b/db/sb.c
@@ -386,7 +386,7 @@ uuid_f(
}

if (!strcasecmp(argv[1], "generate")) {
- platform_uuid_generate(&uu);
+ uuid_generate(uu);
} else if (!strcasecmp(argv[1], "nil")) {
platform_uuid_clear(&uu);
} else if (!strcasecmp(argv[1], "rewrite")) {
diff --git a/mkfs/xfs_mkfs.c b/mkfs/xfs_mkfs.c
index c4e3e054..dd7849fd 100644
--- a/mkfs/xfs_mkfs.c
+++ b/mkfs/xfs_mkfs.c
@@ -3859,7 +3859,7 @@ main(
struct list_head buffer_list;
int error;

- platform_uuid_generate(&cli.uuid);
+ uuid_generate(cli.uuid);
progname = basename(argv[0]);
setlocale(LC_ALL, "");
bindtextdomain(PACKAGE, LOCALEDIR);
--
2.31.1