summaryrefslogtreecommitdiffstats
path: root/Assemble.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.com>2015-07-27 03:01:08 +0200
committerNeilBrown <neilb@suse.com>2015-07-27 03:01:08 +0200
commit653299b6991b0a3a5a136d4f547e7675980c9095 (patch)
tree939ba768702dd86c67a0acdda880da4982cff290 /Assemble.c
parentRelease mdadm-3.3.3 (diff)
parentReuse calc_bitmap_size to reduce code size (diff)
downloadmdadm-653299b6991b0a3a5a136d4f547e7675980c9095.tar.xz
mdadm-653299b6991b0a3a5a136d4f547e7675980c9095.zip
Merge branch 'cluster'
Now that 3.3.3 is out, it is time to include the cluster-support code. Signed-off-by: NeilBrown <neilb@suse.com>
Diffstat (limited to 'Assemble.c')
-rw-r--r--Assemble.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/Assemble.c b/Assemble.c
index 245e2138..8940c275 100644
--- a/Assemble.c
+++ b/Assemble.c
@@ -635,7 +635,13 @@ static int load_devices(struct devs *devices, char *devmap,
if (strcmp(c->update, "byteorder") == 0)
err = 0;
- else
+ else if (strcmp(c->update, "home-cluster") == 0) {
+ tst->cluster_name = c->homecluster;
+ tst->ss->write_bitmap(tst, dfd, NameUpdate);
+ } else if (strcmp(c->update, "nodes") == 0) {
+ tst->nodes = c->nodes;
+ err = tst->ss->write_bitmap(tst, dfd, NodeNumUpdate);
+ } else
err = tst->ss->update_super(tst, content, c->update,
devname, c->verbose,
ident->uuid_set,