diff options
author | NeilBrown <neilb@suse.de> | 2010-11-22 20:24:50 +1100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-11-22 20:24:50 +1100 |
commit | 9b63e64836d207c4fb74f7647d54dd90162a8392 (patch) | |
tree | a1294f48ea14486e26dee2f044725c9486bbaccd /super-ddf.c | |
parent | e32bd33f443ad49cf5f5e337bc24ac09959aca0a (diff) | |
download | mdadm-9b63e64836d207c4fb74f7647d54dd90162a8392.tar.gz |
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>
Diffstat (limited to 'super-ddf.c')
-rw-r--r-- | super-ddf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/super-ddf.c b/super-ddf.c index 41947dc..ab35891 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); |