This fix rolls backs some changes introduced by patch: "Add spares to raid0 in mdadm" Signed-off-by: Adam Kwolek <adam.kwolek@xxxxxxxxx> --- Manage.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Manage.c b/Manage.c index 4e6afb5..fa1b13f 100644 --- a/Manage.c +++ b/Manage.c @@ -800,16 +800,16 @@ int Manage_subdevs(char *devname, int fd, if (dv->writemostly == 1) disc.state |= 1 << MD_DISK_WRITEMOSTLY; dfd = dev_open(dv->devname, O_RDWR | O_EXCL|O_DIRECT); - if (tst->ss->external && - mdmon_running(tst->container_dev)) - tst->update_tail = &tst->updates; if (tst->ss->add_to_super(tst, &disc, dfd, dv->devname)) { close(dfd); return 1; } /* write_init_super will close 'dfd' */ - if (tst->ss->write_init_super(tst)) + if (tst->ss->external) + /* mdmon will write the metadata */ + close(dfd); + else if (tst->ss->write_init_super(tst)) return 1; } else if (dv->re_add) { /* this had better be raid1. -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html