summaryrefslogtreecommitdiffstats
path: root/mdadm.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2005-12-05 05:56:33 +0000
committerNeil Brown <neilb@suse.de>2005-12-05 05:56:33 +0000
commit7d99579f6a52fbf575e4707121ece51d0672277b (patch)
tree61745ca11734259875fa35139858875fb9185d79 /mdadm.c
parentee04451c56f5bc39a77515e2e51897ac1fc15104 (diff)
downloadmdadm-7d99579f6a52fbf575e4707121ece51d0672277b.tar.gz
mdadm-7d99579f6a52fbf575e4707121ece51d0672277b.tar.xz
mdadm-7d99579f6a52fbf575e4707121ece51d0672277b.zip
Support updating of uuid during --assemble.
Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'mdadm.c')
-rw-r--r--mdadm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mdadm.c b/mdadm.c
index 844f6d4..60e0c3e 100644
--- a/mdadm.c
+++ b/mdadm.c
@@ -593,6 +593,8 @@ int main(int argc, char *argv[])
continue;
if (strcmp(update, "resync")==0)
continue;
+ if (strcmp(update, "uuid")==0)
+ continue;
if (strcmp(update, "byteorder")==0) {
if (ss) {
fprintf(stderr, Name ": must not set metadata type with --update=byteorder.\n");
@@ -607,7 +609,7 @@ int main(int argc, char *argv[])
continue;
}
- fprintf(stderr, Name ": '--update %s' invalid. Only 'sparc2.2', 'super-minor', 'resync' or 'summaries' supported\n",update);
+ fprintf(stderr, Name ": '--update %s' invalid. Only 'sparc2.2', 'super-minor', 'uuid', 'resync' or 'summaries' supported\n",update);
exit(2);
case O(ASSEMBLE,'c'): /* config file */