diff options
author | Neil Brown <neilb@suse.de> | 2008-07-12 20:27:42 +1000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2008-07-12 20:27:42 +1000 |
commit | 3576e302fe16ee7c5c553385e5b439432e6461e4 (patch) | |
tree | adf341347620fa222c44ee283ded3519ab2fa095 | |
parent | 18a2f463fd26076e943b1a0325c1e036f1038369 (diff) | |
download | mdadm-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.c | 5 |
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[] ?? ; } |