summaryrefslogtreecommitdiffstats
path: root/mdadm.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2006-12-14 17:33:10 +1100
committerNeil Brown <neilb@suse.de>2006-12-14 17:33:10 +1100
commit3d3dd91e3837d5eb6eeaa876c39153f2b0a4929d (patch)
tree912f688af1c896c0ee76ef5a517a2e25e3860e58 /mdadm.c
parent4855f95c7081d7438b55fed8f8808cc656f0ccc0 (diff)
downloadmdadm-3d3dd91e3837d5eb6eeaa876c39153f2b0a4929d.tar.gz
mdadm-3d3dd91e3837d5eb6eeaa876c39153f2b0a4929d.tar.xz
mdadm-3d3dd91e3837d5eb6eeaa876c39153f2b0a4929d.zip
Support --uuid= with --create to choose your own UUID.
Diffstat (limited to 'mdadm.c')
-rw-r--r--mdadm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mdadm.c b/mdadm.c
index 5fb1b8d..b5dce73 100644
--- a/mdadm.c
+++ b/mdadm.c
@@ -516,6 +516,7 @@ int main(int argc, char *argv[])
continue;
/* now for the Assemble options */
+ case O(CREATE,'u'): /* uuid of array */
case O(ASSEMBLE,'u'): /* uuid of array */
if (ident.uuid_set) {
fprintf(stderr, Name ": uuid cannot be set twice. "
@@ -1136,6 +1137,7 @@ int main(int argc, char *argv[])
rv = Create(ss, devlist->devname, mdfd, chunk, level, layout, size<0 ? 0 : size,
raiddisks, sparedisks, ident.name, homehost,
+ ident.uuid_set ? ident.uuid : NULL,
devs_found-1, devlist->next, runstop, verbose-quiet, force, assume_clean,
bitmap_file, bitmap_chunk, write_behind, delay);
break;