option set. When the option
.B \-m crc=0
is used, the free inode btree feature is not supported and is disabled.
+.TP
+.BI uuid= value
+Use the given value as the filesystem UUID for the newly created filesystem.
+The default is to generate a random UUID.
.RE
.TP
.BI \-d " data_section_options"
"crc",
#define M_FINOBT 1
"finobt",
+#define M_UUID 2
+ "uuid",
NULL
};
bool finobtflag;
int spinodes;
+ platform_uuid_generate(&uuid);
progname = basename(argv[0]);
setlocale(LC_ALL, "");
bindtextdomain(PACKAGE, LOCALEDIR);
finobt = c;
finobtflag = true;
break;
+ case M_UUID:
+ if (!value || *value == '\0')
+ reqval('m', mopts, M_UUID);
+ if (platform_uuid_parse(value, &uuid))
+ illegal(optarg, "m uuid");
+ break;
default:
unknown('m', value);
}
sbp->sb_dblocks = dblocks;
sbp->sb_rblocks = rtblocks;
sbp->sb_rextents = rtextents;
- platform_uuid_generate(&uuid);
platform_uuid_copy(&sbp->sb_uuid, &uuid);
/* Only in memory; libxfs expects this as if read from disk */
platform_uuid_copy(&sbp->sb_meta_uuid, &uuid);
{
fprintf(stderr, _("Usage: %s\n\
/* blocksize */ [-b log=n|size=num]\n\
-/* metadata */ [-m crc=0|1,finobt=0|1]\n\
+/* metadata */ [-m crc=0|1,finobt=0|1,uuid=xxx]\n\
/* data subvol */ [-d agcount=n,agsize=n,file,name=xxx,size=num,\n\
(sunit=value,swidth=value|su=num,sw=num|noalign),\n\
sectlog=n|sectsize=num\n\