From 112cace627b02a7bc918e857cce03b2cc5fc3d52 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Mon, 11 May 2009 15:17:05 +1000 Subject: config: support "ARRAY ..." lines in mdadm.conf Sometimes we want to ensure particular arrays are never assembled automatically. This might include an array made of devices that are shared between hosts. To support this, allow ARRAY lines in mdadm.conf to use the word "ignore" rather than a device name. Arrays which match such lines are never automatically assembled (though they can still be assembled by explicitly giving identification information on the mdadm command line. Signed-off-by: NeilBrown --- mdadm.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mdadm.c') diff --git a/mdadm.c b/mdadm.c index 4402eba..3245f0f 100644 --- a/mdadm.c +++ b/mdadm.c @@ -1095,6 +1095,9 @@ int main(int argc, char *argv[]) exit(1); } for (; array_list; array_list = array_list->next) { + if (array_list->devname && + strcasecmp(array_list->devname, "") == 0) + continue; if (array_list->autof == 0) array_list->autof = autof; -- cgit