]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Incr: use devname_matches to when looking in mdadm.conf for bitmap file
authorNeilBrown <neilb@suse.de>
Mon, 11 May 2009 05:47:11 +0000 (15:47 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 11 May 2009 05:47:11 +0000 (15:47 +1000)
This is more likely to always do the right thing than a strcmp.

Signed-off-by: NeilBrown <neilb@suse.de>
Incremental.c

index 84f56a9cb45867e460528dc1d21f44c240b2084c..b6f527ab518193aa7b492d4ff5010968346ff306 100644 (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) {
                        /*