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 <michal.zylowski@intel.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
This commit is contained in:
Michal Zylowski 2018-04-04 14:20:17 +02:00 committed by Jes Sorensen
parent 1c7c65a3e5
commit b91ad097d6
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}