diff options
authorMichal Zylowski <>2018-04-04 14:20:17 +0200
committerDimitri John Ledkov <>2018-05-15 12:10:33 +0100
commit67c84164acce0a5b979d076fee4b8dda2ad3d292 (patch)
parent9007bb8765da1df600944c4bcd43a404334ddc82 (diff)
[PATCH 2/9] imsm: Allow create RAID volume with link to container
After 1db03765("Subdevs can't be all missing when create raid device") raid volume can't be created with link to container. This feature should not be blocked in Create function. IMSM code forbids creation of container with missing disk, so case like all dev's missing is already handled. Permit IMSM volume creation when devices are given as link to container. Signed-off-by: Michal Zylowski <> Signed-off-by: Jes Sorensen <> Gbp-Pq: Name 0002-imsm-Allow-create-RAID-volume-with-link-to-container.patch
1 files changed, 1 insertions, 1 deletions
diff --git a/Create.c b/Create.c
index 50142d81..04b1dfc9 100644
--- a/Create.c
+++ b/Create.c
@@ -475,7 +475,7 @@ int Create(struct supertype *st, char *mddev,
- if (missing_disks == dnum) {
+ if (missing_disks == dnum && !have_container) {
pr_err("Subdevs can't be all missing\n");
return 1;