diff options
author | NeilBrown <neilb@suse.de> | 2009-05-11 15:46:46 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2009-05-11 15:46:46 +1000 |
commit | 0ac91628b93b31636979b637c1ac7258064dea4e (patch) | |
tree | 88971a9e037c1519a8db205e8d6d1338ddfe8131 /mdassemble.c | |
parent | 603f24a05f48063a7239e323e2aeab497cb0feb6 (diff) | |
download | mdadm-0ac91628b93b31636979b637c1ac7258064dea4e.tar.gz |
Allow homehost to be largely ignored when assembling arrays.
If mdadm.conf contains
HOMEHOST <ignore>
or commandline contains
--homehost=<ignore>
then the check that array metadata mentions the given homehost is
replace by a check that the name recorded in the metadata is not
already used by some other array mentioned in mdadm.conf.
This allows more arrays to use their native name rather than having
an _NN suffix added.
This should only be used during boot time if all arrays required for
normal boot are listed in mdadm.conf.
If auto-assembly is used to find all array during boot, then the
HOMEHOST feature should be used to ensure there is no room for
confusion in choosing array names, and so it should not be set
to <ignore>.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdassemble.c')
-rw-r--r-- | mdassemble.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mdassemble.c b/mdassemble.c index e2baf05..45ff9c5 100644 --- a/mdassemble.c +++ b/mdassemble.c @@ -111,7 +111,8 @@ int main(int argc, char *argv[]) { close(mdfd); rv |= Assemble(array_list->st, array_list->devname, array_list, NULL, NULL, - readonly, runstop, NULL, NULL, verbose, force); + readonly, runstop, NULL, NULL, 0, + verbose, force); } return rv; } |