]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Assemble.c
Assemble: correctly capture error from ->write_bitmap
[thirdparty/mdadm.git] / Assemble.c
index be4d8c962722731f7f587150619544490216844c..d9e9001274cdd6869025b366724ce92da032377c 100644 (file)
@@ -639,7 +639,7 @@ static int load_devices(struct devs *devices, char *devmap,
                                err = 0;
                        else if (strcmp(c->update, "home-cluster") == 0) {
                                tst->cluster_name = c->homecluster;
-                               tst->ss->write_bitmap(tst, dfd, NameUpdate);
+                               err = 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);