From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Benjamin Marzinski" Subject: Re: [PATCH 20/21] libmultipath: sync_map_state: log failing paths Date: Thu, 25 Oct 2018 16:52:31 -0500 Message-ID: <20181025215231.GC7100@octiron.msp.redhat.com> References: <20181011222707.3631-1-mwilck@suse.com> <20181011222707.3631-21-mwilck@suse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20181011222707.3631-21-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: Martin Wilck Cc: dm-devel@redhat.com List-Id: dm-devel.ids On Fri, Oct 12, 2018 at 12:27:06AM +0200, Martin Wilck wrote: > Emit a log message when force-failing exisiting paths. > Reviewed-by: Benjamin Marzinski > Signed-off-by: Martin Wilck > --- > libmultipath/structs_vec.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/libmultipath/structs_vec.c b/libmultipath/structs_vec.c > index f87d69d4..c85823a0 100644 > --- a/libmultipath/structs_vec.c > +++ b/libmultipath/structs_vec.c > @@ -318,8 +318,11 @@ sync_map_state(struct multipath *mpp) > else if ((pp->dmstate == PSTATE_ACTIVE || > pp->dmstate == PSTATE_UNDEF) && > (pp->state == PATH_DOWN || > - pp->state == PATH_SHAKY)) > + pp->state == PATH_SHAKY)) { > + condlog(2, "sync_map_state: failing %s state %d dmstate %d", > + pp->dev, pp->state, pp->dmstate); > dm_fail_path(mpp->alias, pp->dev_t); > + } > } > } > } > -- > 2.19.0