.IR UUID .
The format of the UUID is a series of hex digits separated by hyphens,
like this: "c1b9d5a2-f162-11cf-9ece-0020afc76f16".
+The
+.I UUID
+parameter may also be one of the following:
+.RS 1.2i
+.TP
+.I clear
+clear the file system UUID
+.TP
+.I random
+generate a new randomly-generated UUID
+.RE
.TP
.B \-\-all-root
Make all files owned by root.
has_timestamp = true;
break;
case 'U':
- if (erofs_uuid_parse(optarg, fixeduuid)) {
+ if (!strcmp(optarg, "clear")) {
+ memset(fixeduuid, 0, 16);
+ } else if (!strcmp(optarg, "random")) {
+ valid_fixeduuid = false;
+ break;
+ } else if (erofs_uuid_parse(optarg, fixeduuid)) {
erofs_err("invalid UUID %s", optarg);
return -EINVAL;
}