summaryrefslogtreecommitdiffstats
path: root/Incremental.c
diff options
context:
space:
mode:
authorGuoqing Jiang <gqjiang@suse.com>2015-06-10 07:42:10 +0200
committerNeilBrown <neilb@suse.de>2015-06-17 01:33:18 +0200
commit06bd679317a2a514aa7d51b54b5ad2a01742e42e (patch)
tree4425641354c1abb9261a9fc000ddb136fa6aae1a /Incremental.c
parentConvert a bitmap=none device to clustered (diff)
downloadmdadm-06bd679317a2a514aa7d51b54b5ad2a01742e42e.tar.xz
mdadm-06bd679317a2a514aa7d51b54b5ad2a01742e42e.zip
Skip clustered devices in incremental
We want the clustered devices to be started exclusively by a cluster resource-agent. So, avoid starting using the incremental option. This also skips a clustered md from starting during boot in inactive mode. Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com> Signed-off-by: Guoqing Jiang <gqjiang@suse.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Incremental.c')
-rw-r--r--Incremental.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Incremental.c b/Incremental.c
index 0c9a9a4c..5450a5ce 100644
--- a/Incremental.c
+++ b/Incremental.c
@@ -232,6 +232,11 @@ int Incremental(struct mddev_dev *devlist, struct context *c,
devname);
goto out;
}
+ /* Skip the clustered ones. This should be started by
+ * clustering resource agents
+ */
+ if (info.array.state & (1 << MD_SB_CLUSTERED))
+ goto out;
/* 3a/ if not, check for homehost match. If no match, continue
* but don't trust the 'name' in the array. Thus a 'random' minor