diff options
author | NeilBrown <neilb@suse.de> | 2011-11-01 13:30:41 +1100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-11-01 13:30:41 +1100 |
commit | 2244d1a9877d18bdc42a5204d31f41920d369e87 (patch) | |
tree | 74f7ef946a9a16be6844f0681c995331a4cbf9d1 /mapfile.c | |
parent | 81219e70f2a9be7292046860ea15528fe5854cab (diff) | |
download | mdadm-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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; |