From e5408a3202c09267f780d53334c369793534a7e8 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Thu, 18 Nov 2010 10:21:29 +0100 Subject: Provide a mdstat_ent to subarray helper ...before introducing another open coded instace of this conversion. Signed-off-by: Dan Williams Signed-off-by: NeilBrown --- managemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'managemon.c') 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; -- cgit v1.2.3