From: Michal Zylowski Date: Wed, 4 Apr 2018 12:20:17 +0000 (+0200) Subject: imsm: Allow create RAID volume with link to container X-Git-Tag: mdadm-4.1-rc2~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b91ad097d6eecb85cf28915836370288709fbda8;p=thirdparty%2Fmdadm.git 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 --- 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, close(fd); } } - if (missing_disks == dnum) { + if (missing_disks == dnum && !have_container) { pr_err("Subdevs can't be all missing\n"); return 1; }