For raid0 metadata has to be written. It is possible that Manage.c:812 requires similar guard for mdmon running. Signed-off-by: Adam Kwolek <adam.kwolek@xxxxxxxxx> --- Manage.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/Manage.c b/Manage.c index a032c08..f208d15 100644 --- a/Manage.c +++ b/Manage.c @@ -870,6 +870,12 @@ int Manage_subdevs(char *devname, int fd, close(container_fd); return 1; } + if (!mdmon_running(devnum)) + if (tst->ss->write_init_super(tst)) { + close(dfd); + close(container_fd); + return 1; + } close(dfd); sra = sysfs_read(container_fd, -1, 0); -- 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