Make validate_geometry_ddf() use the same logic to check supported RAID levels that init_super_ddf_bvd() uses. Signed-off-by: Martin Wilck <mwilck@xxxxxxxx> --- super-ddf.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/super-ddf.c b/super-ddf.c index f42bb16..1893f45 100644 --- a/super-ddf.c +++ b/super-ddf.c @@ -3071,8 +3071,8 @@ static int validate_geometry_ddf(struct supertype *st, struct vd_config conf; if (layout_md2ddf(&array, &conf) == -1) { if (verbose) - pr_err("DDF does not support level %d arrays\n", - level); + pr_err("DDF does not support level %d /layout %d arrays with %d disks\n", + level, layout, raiddisks); return 0; } /* Should check layout? etc */ -- 1.7.1 -- 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