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:
parent
5aaf6c7b5d
commit
94b08b7c31
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue