From: NeilBrown Date: Mon, 22 Nov 2010 09:24:50 +0000 (+1100) Subject: Use container_member rather than subarray info ddf getinfo_super. X-Git-Tag: mdadm-3.2~302 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b63e64836d207c4fb74f7647d54dd90162a8392;p=thirdparty%2Fmdadm.git 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 --- diff --git a/super-ddf.c b/super-ddf.c index 41947dc2..ab358918 100644 --- a/super-ddf.c +++ b/super-ddf.c @@ -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);