]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - super-ddf.c
(no commit message)
[thirdparty/mdadm.git] / super-ddf.c
index b1cb268960616209d3cd8c7c87f8d705c93e2e94..3feea57796e1242201095ca85659b9279902a1ff 100644 (file)
@@ -2413,8 +2413,12 @@ static int write_init_super_ddf(struct supertype *st)
 
                /* FIXME I need to close the fds! */
                return 0;
-       } else 
+       } else {        
+               struct dl *d;
+               for (d = ddf->dlist; d; d=d->next)
+                       while (Kill(d->devname, NULL, 0, 1, 1) == 0);
                return __write_init_super_ddf(st, 1);
+       }
 }
 
 #endif