+void volume_id_set_uuid(struct volume_id *id, const uint8_t *buf, size_t len, enum uuid_format format)
+{
+ if (len > sizeof(id->uuid_raw))
+ len = sizeof(id->uuid_raw);
+
+ set_uuid(buf, len, format, id->uuid, id->uuid_raw, &id->uuid_raw_len);
+}
+
+void volume_id_set_uuid_sub(struct volume_id *id, const uint8_t *buf, size_t len, enum uuid_format format)
+{
+ if (len > sizeof(id->uuid_sub_raw))
+ len = sizeof(id->uuid_sub_raw);
+
+ set_uuid(buf, len, format, id->uuid_sub, id->uuid_sub_raw, &id->uuid_sub_raw_len);
+}
+