summaryrefslogtreecommitdiffstats
path: root/Incremental.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2009-05-11 15:47:11 +1000
committerNeilBrown <neilb@suse.de>2009-05-11 15:47:11 +1000
commit2400e6eb21af93368824110d087708dc9c48f744 (patch)
treeafe2f25f70b97682b59c53a078b22136d9810bcd /Incremental.c
parent60f8cb9b02af3c55708c44b40425f57282c8937c (diff)
downloadmdadm-2400e6eb21af93368824110d087708dc9c48f744.tar.gz
mdadm-2400e6eb21af93368824110d087708dc9c48f744.tar.xz
mdadm-2400e6eb21af93368824110d087708dc9c48f744.zip
Incr: use devname_matches to when looking in mdadm.conf for bitmap file
This is more likely to always do the right thing than a strcmp. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Incremental.c')
-rw-r--r--Incremental.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Incremental.c b/Incremental.c
index 84f56a9..b6f527a 100644
--- a/Incremental.c
+++ b/Incremental.c
@@ -670,7 +670,7 @@ int IncrementalScan(int verbose)
/* Ok, we can try this one. Maybe it needs a bitmap */
for (mddev = devs ; mddev ; mddev = mddev->next)
if (mddev->devname && me->path
- && strcmp(mddev->devname, me->path))
+ && devname_matches(mddev->devname, me->path))
break;
if (mddev && mddev->bitmap_file) {
/*