Use container_member rather than subarray info ddf getinfo_super.
We are in the processes of discarding the subarray field, so remove the unnecessary use of it. Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
parent
e32bd33f44
commit
9b63e64836
|
@ -1450,9 +1450,9 @@ static void getinfo_super_ddf_bvd(struct supertype *st, struct mdinfo *info, cha
|
|||
|
||||
info->array.major_version = -1;
|
||||
info->array.minor_version = -2;
|
||||
sprintf(info->text_version, "/%s/%s",
|
||||
sprintf(info->text_version, "/%s/%d",
|
||||
devnum2devname(st->container_dev),
|
||||
st->subarray);
|
||||
info->container_member);
|
||||
info->safe_mode_delay = 200;
|
||||
|
||||
memcpy(info->name, ddf->virt->entries[info->container_member].name, 16);
|
||||
|
|
Loading…
Reference in New Issue