summaryrefslogtreecommitdiffstats
path: root/managemon.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2010-11-18 10:21:29 +0100
committerNeilBrown <neilb@suse.de>2010-11-23 04:44:23 +0100
commite5408a3202c09267f780d53334c369793534a7e8 (patch)
tree5ba44115a8271c0484bf10c85cdbb3aa665068bc /managemon.c
parentAssemble: get content before testing it. (diff)
downloadmdadm-e5408a3202c09267f780d53334c369793534a7e8.tar.xz
mdadm-e5408a3202c09267f780d53334c369793534a7e8.zip
Provide a mdstat_ent to subarray helper
...before introducing another open coded instace of this conversion. Signed-off-by: Dan Williams <dan.j.williams@intel.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'managemon.c')
-rw-r--r--managemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/managemon.c b/managemon.c
index b6f99252..fbf61888 100644
--- a/managemon.c
+++ b/managemon.c
@@ -511,7 +511,7 @@ static void manage_new(struct mdstat_ent *mdstat,
new->container = container;
- inst = &mdstat->metadata_version[10+strlen(container->devname)+1];
+ inst = to_subarray(mdstat, container->devname);
new->info.array = mdi->array;
new->info.component_size = mdi->component_size;