From: mwilck@suse.com Subject: [PATCH 61/74] libmultipath: adopt_paths(): skip removed paths Date: Thu, 9 Jul 2020 12:51:32 +0200 Message-ID: <20200709105145.9211-9-mwilck@suse.com> References: <20200709105145.9211-1-mwilck@suse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20200709105145.9211-1-mwilck@suse.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: Christophe Varoqui , Benjamin Marzinski Cc: dm-devel@redhat.com, Martin Wilck List-Id: dm-devel.ids From: Martin Wilck If we don't do this, pathinfo() will fail on these paths, causing adopt_paths() to fail. Signed-off-by: Martin Wilck --- libmultipath/structs_vec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libmultipath/structs_vec.c b/libmultipath/structs_vec.c index 7c68592..1e0f109 100644 --- a/libmultipath/structs_vec.c +++ b/libmultipath/structs_vec.c @@ -79,6 +79,8 @@ int adopt_paths(vector pathvec, struct multipath *mpp) pp->dev, mpp->alias); continue; } + if (pp->initialized == INIT_REMOVED) + continue; condlog(3, "%s: ownership set to %s", pp->dev, mpp->alias); pp->mpp = mpp; -- 2.26.2