summaryrefslogtreecommitdiff
path: root/mapfile.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2011-11-01 13:30:41 +1100
committerNeilBrown <neilb@suse.de>2011-11-01 13:30:41 +1100
commit2244d1a9877d18bdc42a5204d31f41920d369e87 (patch)
tree74f7ef946a9a16be6844f0681c995331a4cbf9d1 /mapfile.c
parent81219e70f2a9be7292046860ea15528fe5854cab (diff)
downloadmdadm-2244d1a9877d18bdc42a5204d31f41920d369e87.tar.gz
Remove duplicated code: search_mdstat and conf_match
search_mdstat and conf_match are almost identical. Put all the functionality in conf_match, and remove search_mdstat. Reported-by: Jes.Sorensen@redhat.com Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mapfile.c')
-rw-r--r--mapfile.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mapfile.c b/mapfile.c
index 997f095..0bfecd0 100644
--- a/mapfile.c
+++ b/mapfile.c
@@ -431,7 +431,9 @@ void RebuildMap(void)
* find a unique name based on metadata name.
*
*/
- struct mddev_ident *match = conf_match(info, st);
+ struct mddev_ident *match = conf_match(st, info,
+ NULL, 0,
+ NULL);
struct stat stb;
if (match && match->devname && match->devname[0] == '/') {
path = match->devname;