[PATCH v2 10/29] xfsprogs: Stop using platform_uuid_parse()

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

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

diff --git a/db/sb.c b/db/sb.c
index 36c7db39..63f43ea4 100644
--- a/db/sb.c
+++ b/db/sb.c
@@ -410,7 +410,7 @@ uuid_f(

memcpy(&uu, mp->m_sb.sb_meta_uuid, sizeof(uuid_t));
} else {
- if (platform_uuid_parse(argv[1], &uu)) {
+ if (uuid_parse(argv[1], uu)) {
dbprintf(_("invalid UUID\n"));
return 0;
}
diff --git a/mkfs/xfs_mkfs.c b/mkfs/xfs_mkfs.c
index dd7849fd..2771a641 100644
--- a/mkfs/xfs_mkfs.c
+++ b/mkfs/xfs_mkfs.c
@@ -1656,7 +1656,7 @@ meta_opts_parser(
case M_UUID:
if (!value || *value == '\0')
reqval('m', opts->subopts, subopt);
- if (platform_uuid_parse(value, &cli->uuid))
+ if (uuid_parse(value, cli->uuid))
illegal(value, "m uuid");
break;
case M_RMAPBT:
--
2.31.1