diff options
author | Dan Williams <dan.j.williams@intel.com> | 2010-11-18 10:21:29 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-11-23 04:44:23 +0100 |
commit | e5408a3202c09267f780d53334c369793534a7e8 (patch) | |
tree | 5ba44115a8271c0484bf10c85cdbb3aa665068bc /managemon.c | |
parent | Assemble: get content before testing it. (diff) | |
download | mdadm-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.c | 2 |
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; |