@@ -437,16 +437,19 @@ configure (struct config *conf, enum mpath_cmds cmd,
* set, you need to actually check if there are two available
* paths to determine if this path should be multipathed. To
* do this, we put off the check until after discovering all
- * the paths */
- if (cmd == CMD_VALID_PATH &&
- (!conf->find_multipaths || !conf->ignore_wwids)) {
- if (conf->ignore_wwids ||
+ * the paths.
+ * Paths listed in the wwids file are always considered valid.
+ */
+ if (cmd == CMD_VALID_PATH) {
+ if ((!conf->find_multipaths && conf->ignore_wwids) ||
check_wwids_file(refwwid, 0) == 0)
r = 0;
-
- printf("%s %s a valid multipath device path\n",
- devpath, r == 0 ? "is" : "is not");
- goto out;
+ if (r == 0 ||
+ !conf->find_multipaths || !conf->ignore_wwids) {
+ printf("%s %s a valid multipath device path\n",
+ devpath, r == 0 ? "is" : "is not");
+ goto out;
+ }
}
}