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:
NeilBrown 2010-11-22 20:24:50 +11:00
parent e32bd33f44
commit 9b63e64836
1 changed files with 2 additions and 2 deletions

View File

@ -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);