diff options
author | NeilBrown <neilb@suse.de> | 2011-05-10 16:17:12 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-05-10 16:17:12 +1000 |
commit | 0f23aa88f81127eae744d60eedd4884f021562d0 (patch) | |
tree | ba1e8d2580b719277f0df8b98beea0a859b5dd08 /super0.c | |
parent | 815c8a7e0b11b69331211b59b880ba50f3ed2b5e (diff) | |
download | mdadm-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |