DDF: validate_geometry_ddf: support RAID10

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@arcor.de>
Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
mwilck@arcor.de 2013-07-03 22:27:55 +02:00 committed by NeilBrown
parent 5aaf6c7b5d
commit 94b08b7c31
1 changed files with 2 additions and 2 deletions

View File

@ -3074,8 +3074,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 */