]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Incremental.c
Having single function to read mdmon pid file.
[thirdparty/mdadm.git] / Incremental.c
index 84f56a9cb45867e460528dc1d21f44c240b2084c..8c686f7e8e6bde1d426d8731f3bdeca8a9d5c1d3 100644 (file)
@@ -2,7 +2,7 @@
  * Incremental.c - support --incremental.  Part of:
  * mdadm - manage Linux "md" devices aka RAID arrays.
  *
- * Copyright (C) 2006 Neil Brown <neilb@suse.de>
+ * Copyright (C) 2006-2009 Neil Brown <neilb@suse.de>
  *
  *
  *    This program is free software; you can redistribute it and/or modify
@@ -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) {
                        /*