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@xxxxxxxxx> --- Create.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Create.c b/Create.c index 50142d8..04b1dfc 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; } -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html