summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2008-07-12 20:27:42 +1000
committerNeil Brown <neilb@suse.de>2008-07-12 20:27:42 +1000
commit3576e302fe16ee7c5c553385e5b439432e6461e4 (patch)
treeadf341347620fa222c44ee283ded3519ab2fa095
parent18a2f463fd26076e943b1a0325c1e036f1038369 (diff)
downloadmdadm-3576e302fe16ee7c5c553385e5b439432e6461e4.tar.gz
mdadm-3576e302fe16ee7c5c553385e5b439432e6461e4.tar.xz
mdadm-3576e302fe16ee7c5c553385e5b439432e6461e4.zip
ddf: Set container_member from subarray in getinfo_super.
Also go direct from subarray to text_version.
-rw-r--r--super-ddf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/super-ddf.c b/super-ddf.c
index a0a9cb0..b16001e 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[] ?? ;
}