diff options
author | Neil Brown <neilb@suse.de> | 2006-12-14 17:33:10 +1100 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2006-12-14 17:33:10 +1100 |
commit | 3d3dd91e3837d5eb6eeaa876c39153f2b0a4929d (patch) | |
tree | 912f688af1c896c0ee76ef5a517a2e25e3860e58 /mdadm.c | |
parent | 4855f95c7081d7438b55fed8f8808cc656f0ccc0 (diff) | |
download | mdadm-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |