From: NeilBrown Date: Mon, 11 May 2009 05:47:11 +0000 (+1000) Subject: Incr: use devname_matches to when looking in mdadm.conf for bitmap file X-Git-Tag: mdadm-3.0-rc1~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2400e6eb21af93368824110d087708dc9c48f744;p=thirdparty%2Fmdadm.git 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 --- diff --git a/Incremental.c b/Incremental.c index 84f56a9c..b6f527ab 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) { /*