]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Create.c
Remove partitions from components of an md array
[thirdparty/mdadm.git] / Create.c
index 2dbc330975dd3a5c24e1a5997a44b226961ca8ad..ff87df09e65586c061b8a1e6eadf37bc3f2f2078 100644 (file)
--- a/Create.c
+++ b/Create.c
@@ -521,6 +521,7 @@ int Create(struct supertype *st, char *mddev, int mdfd,
                                fstat(fd, &stb);
                                disk.major = major(stb.st_rdev);
                                disk.minor = minor(stb.st_rdev);
+                               remove_partitions(fd);
                                close(fd);
                        }
                        switch(pass){