if (store_path(mpp->paths, pp2))
return 1;
}
- if (setup_map(mpp)) {
- free_multipath(mpp, KEEP_PATHS);
- continue;
- }
+ if (setup_map(mpp))
+ goto next;
+
condlog(3, "action preset to %i", mpp->action);
if (mpp->action == ACT_UNDEF)
condlog(3, "action set to %i", mpp->action);
domap(mpp);
+next:
drop_multipath(curmp, mpp->wwid, KEEP_PATHS);
free_multipath(mpp, KEEP_PATHS);
}
* discard out of scope maps
*/
if (mpp->wwid && refwwid &&
- strncmp(mpp->wwid, refwwid, WWID_SIZE))
+ !strncmp(mpp->wwid, refwwid, WWID_SIZE))
continue;
condlog(3, "params = %s", mpp->params);