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:
parent
60f8cb9b02
commit
2400e6eb21
|
@ -670,7 +670,7 @@ int IncrementalScan(int verbose)
|
||||||
/* Ok, we can try this one. Maybe it needs a bitmap */
|
/* Ok, we can try this one. Maybe it needs a bitmap */
|
||||||
for (mddev = devs ; mddev ; mddev = mddev->next)
|
for (mddev = devs ; mddev ; mddev = mddev->next)
|
||||||
if (mddev->devname && me->path
|
if (mddev->devname && me->path
|
||||||
&& strcmp(mddev->devname, me->path))
|
&& devname_matches(mddev->devname, me->path))
|
||||||
break;
|
break;
|
||||||
if (mddev && mddev->bitmap_file) {
|
if (mddev && mddev->bitmap_file) {
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue