summaryrefslogtreecommitdiffstats
path: root/Assemble.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2006-05-23 04:57:04 +0000
committerNeil Brown <neilb@suse.de>2006-05-23 04:57:04 +0000
commitc4f12c134069e191b08074b4ed7ba689d0827d11 (patch)
tree292b9970ee244976b9ba1218c0bd1314532611f9 /Assemble.c
parente5eac01f3d52ceb932445f90c0aaa86f244e26e7 (diff)
downloadmdadm-c4f12c134069e191b08074b4ed7ba689d0827d11.tar.gz
mdadm-c4f12c134069e191b08074b4ed7ba689d0827d11.tar.xz
mdadm-c4f12c134069e191b08074b4ed7ba689d0827d11.zip
Allow --update=name to update the name during assembly.
Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'Assemble.c')
-rw-r--r--Assemble.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Assemble.c b/Assemble.c
index 30cb1aa..1dc0ffc 100644
--- a/Assemble.c
+++ b/Assemble.c
@@ -225,7 +225,7 @@ int Assemble(struct supertype *st, char *mddev, int mdfd,
devname);
continue;
}
- if (ident->name[0] &&
+ if (ident->name[0] && (!update || strcmp(update, "name")!= 0) &&
(!super || strncmp(info.name, ident->name, 32)!=0)) {
if ((inargv && verbose >= 0) || verbose > 0)
fprintf(stderr, Name ": %s has wrong name.\n",