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 /mdadm.conf.5 | |
parent | 815c8a7e0b11b69331211b59b880ba50f3ed2b5e (diff) |
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 'mdadm.conf.5')
-rw-r--r-- | mdadm.conf.5 | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/mdadm.conf.5 b/mdadm.conf.5 index 65b00293..9f31c734 100644 --- a/mdadm.conf.5 +++ b/mdadm.conf.5 @@ -339,14 +339,15 @@ line gives a default value for the .B \-\-homehost= option to mdadm. There should normally be only one other word on the line. It should either be a host name, or one of the special words -.B <system> +.BR <system>, +.B <none> and .BR <ignore> . If .B <system> is given, then the .BR gethostname ( 2 ) -systemcall is used to get the host name. +systemcall is used to get the host name. This is the default. If .B <ignore> @@ -362,6 +363,12 @@ more that one other word on the .B HOMEHOST line. +If +.B <none> +is given, then the default of using +.BR gethostname ( 2 ) +is over-ridden and no homehost name is assumed. + When arrays are created, this host name will be stored in the metadata. When arrays are assembled using auto-assembly, arrays which do not record the correct homehost name in their metadata will be |