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>
This commit is contained in:
NeilBrown 2009-05-11 15:47:11 +10:00
parent 60f8cb9b02
commit 2400e6eb21
1 changed files with 1 additions and 1 deletions

View File

@ -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) {
/*