From: Christophe Varoqui Date: Wed, 12 Oct 2005 14:24:18 +0000 (+0200) Subject: [multipath] "skip out of scope map" fix X-Git-Tag: 0.4.6~75 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8f72ad4c2c65225091063b83ce2ec0120e9edf72;p=platform%2Fupstream%2Fmultipath-tools.git [multipath] "skip out of scope map" fix The logic was accidentaly inverted in the last patch. And now we drop the map from mpvec when "out of scope". --- diff --git a/multipath/main.c b/multipath/main.c index 4f92392..9325632 100644 --- a/multipath/main.c +++ b/multipath/main.c @@ -855,8 +855,13 @@ get_dm_mpvec (vector curmp, vector pathvec, char * refwwid) * discard out of scope maps */ if (mpp->wwid && refwwid && - !strncmp(mpp->wwid, refwwid, WWID_SIZE)) - continue; + strncmp(mpp->wwid, refwwid, WWID_SIZE)) { + condlog(3, "skip map %s: out of scope", mpp->alias); + free_multipath(mpp, KEEP_PATHS); + vector_del_slot(curmp, i); + i--; + continue; + } condlog(3, "params = %s", mpp->params); condlog(3, "status = %s", mpp->status);