diff options
author | NeilBrown <neilb@suse.de> | 2009-05-11 15:17:33 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2009-05-11 15:17:33 +1000 |
commit | 31015d5798c214ff416ff6ef6e10351944661362 (patch) | |
tree | 12cf88aac12757c0ae282b8613cc10be8f86de19 /Incremental.c | |
parent | 112cace627b02a7bc918e857cce03b2cc5fc3d52 (diff) | |
download | mdadm-31015d5798c214ff416ff6ef6e10351944661362.tar.gz mdadm-31015d5798c214ff416ff6ef6e10351944661362.tar.xz mdadm-31015d5798c214ff416ff6ef6e10351944661362.zip |
conf/assemble: new config line "auto".
The line 'auto' in mdadm.conf can be used to disable assembly
of specific metadata types, or of all arrays.
This does not affect assembly of arrays listed in mdadm.conf
or on command line.
auto -all
will disable all auto-assembly.
auto -ddf
will cause mdadm to ignore ddf arrays that are not explicitly
mentioned, and auto assemble anything else it finds.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Incremental.c')
-rw-r--r-- | Incremental.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Incremental.c b/Incremental.c index 5849d39..7d6de98 100644 --- a/Incremental.c +++ b/Incremental.c @@ -220,6 +220,15 @@ int Incremental(char *devname, int verbose, int runstop, return 1; } + if (!match && !conf_test_metadata(st->ss->name)) { + if (verbose >= 1) + fprintf(stderr, Name + ": %s has metadata type %s for which " + "auto-assembly is disabled\n", + devname, st->ss->name); + return 1; + } + /* 3a/ if not, check for homehost match. If no match, continue * but don't trust the 'name' in the array. Thus a 'random' minor * number will be assigned, and the device name will be based |