From: Neil Brown Date: Sat, 12 Jul 2008 10:27:42 +0000 (+1000) Subject: ddf: Set container_member from subarray in getinfo_super. X-Git-Tag: mdadm-3.0-devel1~130 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3576e302fe16ee7c5c553385e5b439432e6461e4;p=thirdparty%2Fmdadm.git ddf: Set container_member from subarray in getinfo_super. Also go direct from subarray to text_version. --- diff --git a/super-ddf.c b/super-ddf.c index a0a9cb03..b16001e9 100644 --- a/super-ddf.c +++ b/super-ddf.c @@ -1286,9 +1286,10 @@ static void getinfo_super_ddf_bvd(struct supertype *st, struct mdinfo *info) uuid_from_super_ddf(st, info->uuid); - sprintf(info->text_version, "/%s/%d", + info->container_member = atoi(st->subarray); + sprintf(info->text_version, "/%s/%s", devnum2devname(st->container_dev), - info->container_member); + st->subarray); // info->name[] ?? ; }