From: Benjamin Marzinski Subject: Re: [PATCH] multipath: better check for daemon mode. Date: Wed, 31 Aug 2011 21:46:32 -0500 Message-ID: <20110901024632.GB11793@ether.msp.redhat.com> References: <20110725184752.GL15149@ether.msp.redhat.com> Reply-To: device-mapper development Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20110725184752.GL15149@ether.msp.redhat.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: device-mapper development Cc: Christophe Varoqui List-Id: dm-devel.ids Christophe, would it be possible to get this merged? Thanks, -Ben On Mon, Jul 25, 2011 at 01:47:52PM -0500, Benjamin Marzinski wrote: > Switching to conf->daemon to check if we are in daemon mode. > > Signed-off-by: Benjamin Marzinski > --- > libmultipath/dmparser.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > Index: multipath-tools-110713/libmultipath/dmparser.c > =================================================================== > --- multipath-tools-110713.orig/libmultipath/dmparser.c > +++ multipath-tools-110713/libmultipath/dmparser.c > @@ -13,6 +13,7 @@ > #include "structs.h" > #include "util.h" > #include "debug.h" > +#include "config.h" > > #define WORD_SIZE 64 > > @@ -330,7 +331,7 @@ disassemble_map (vector pathvec, char * > strncpy(pp->dev_t, word, BLK_DEV_SIZE); > > /* Only call this in multipath client mode */ > - if (!mpp->waiter && store_path(pathvec, pp)) > + if (!conf->daemon && store_path(pathvec, pp)) > goto out1; > } > FREE(word); > > -- > dm-devel mailing list > dm-devel@redhat.com > https://www.redhat.com/mailman/listinfo/dm-devel