summaryrefslogtreecommitdiff
path: root/super0.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2011-05-10 16:17:12 +1000
committerNeilBrown <neilb@suse.de>2011-05-10 16:17:12 +1000
commit0f23aa88f81127eae744d60eedd4884f021562d0 (patch)
treeba1e8d2580b719277f0df8b98beea0a859b5dd08 /super0.c
parent815c8a7e0b11b69331211b59b880ba50f3ed2b5e (diff)
downloadmdadm-0f23aa88f81127eae744d60eedd4884f021562d0.tar.gz
config: restore the possibility of a NULL homehost
As homehost defaults to the system name it is not possible to specify a NULL homehost. This patch restored this ability with either --homehost="" or --homehost="<none>". This allows the creation of v1.x arrays without a "hostname:" prefix in the name. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'super0.c')
-rw-r--r--super0.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/super0.c b/super0.c
index 3ae236a..2c27e1e 100644
--- a/super0.c
+++ b/super0.c
@@ -541,7 +541,7 @@ static int update_super0(struct supertype *st, struct mdinfo *info,
sb->state &= ~(1<<MD_SB_CLEAN);
sb->recovery_cp = 0;
} else if (strcmp(update, "homehost") == 0 &&
- homehost) {
+ homehost) {
uuid_set = 0;
update = "uuid";
info->uuid[0] = sb->set_uuid0;