All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 10/15] multipath: blacklist virtio-blk devices
  2015-03-08  3:31 [PATCH 00/15] Multipath patch resync Benjamin Marzinski
@ 2015-03-08  3:31 ` Benjamin Marzinski
  0 siblings, 0 replies; 4+ messages in thread
From: Benjamin Marzinski @ 2015-03-08  3:31 UTC (permalink / raw)
  To: device-mapper development; +Cc: Christophe Varoqui

virtio-blk devices don't report anything to use as a WWID, so
multipath shouldn't waste it's time checking them.

Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
---
 libmultipath/blacklist.c | 2 +-
 multipath.conf.defaults  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libmultipath/blacklist.c b/libmultipath/blacklist.c
index 05f1697..cea128c 100644
--- a/libmultipath/blacklist.c
+++ b/libmultipath/blacklist.c
@@ -178,7 +178,7 @@ setup_default_blist (struct config * conf)
 	if (store_ble(conf->blist_devnode, str, ORIGIN_DEFAULT))
 		return 1;
 
-	str = STRDUP("^(td|hd)[a-z]");
+	str = STRDUP("^(td|hd|vd)[a-z]");
 	if (!str)
 		return 1;
 	if (store_ble(conf->blist_devnode, str, ORIGIN_DEFAULT))
diff --git a/multipath.conf.defaults b/multipath.conf.defaults
index cf8cfdb..5e46fd8 100644
--- a/multipath.conf.defaults
+++ b/multipath.conf.defaults
@@ -29,7 +29,7 @@
 #}
 #blacklist {
 #	devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
-#	devnode "^hd[a-z]"
+#	devnode "^(td|hd|vd)[a-z]"
 #	devnode "^dcssblk[0-9]*"
 #	devnode "^nvme.*"
 #	device {
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 10/15] multipath: blacklist virtio-blk devices
@ 2015-03-08 10:24 Xose Vazquez Perez
  2015-03-08 10:33 ` Christophe Varoqui
  0 siblings, 1 reply; 4+ messages in thread
From: Xose Vazquez Perez @ 2015-03-08 10:24 UTC (permalink / raw)
  To: device-mapper development, Benjamin Marzinski, Christophe Varoqui

Benjamin Marzinski wrote:

> virtio-blk devices don't report anything to use as a WWID, so
> multipath shouldn't waste it's time checking them.
> 
> Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
> ---
>  libmultipath/blacklist.c | 2 +-
>  multipath.conf.defaults  | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/libmultipath/blacklist.c b/libmultipath/blacklist.c
> index 05f1697..cea128c 100644
> --- a/libmultipath/blacklist.c
> +++ b/libmultipath/blacklist.c
> @@ -178,7 +178,7 @@ setup_default_blist (struct config * conf)
>  	if (store_ble(conf->blist_devnode, str, ORIGIN_DEFAULT))
>  		return 1;
>  
> -	str = STRDUP("^(td|hd)[a-z]");
> +	str = STRDUP("^(td|hd|vd)[a-z]");
                                      ^
                                      Missing "*" ?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 10/15] multipath: blacklist virtio-blk devices
  2015-03-08 10:24 [PATCH 10/15] multipath: blacklist virtio-blk devices Xose Vazquez Perez
@ 2015-03-08 10:33 ` Christophe Varoqui
  2015-03-09 20:19   ` Benjamin Marzinski
  0 siblings, 1 reply; 4+ messages in thread
From: Christophe Varoqui @ 2015-03-08 10:33 UTC (permalink / raw)
  To: Xose Vazquez Perez; +Cc: device-mapper development


[-- Attachment #1.1: Type: text/plain, Size: 1155 bytes --]

Hi Xose,

it sure wouldn't hurt, be as there is no trailing "$" I guess the pattern
does its job as-is.
Please let me know if I'm reading this wrong.

Best regards,
Christophe Varoqui
OpenSVC

On Sun, Mar 8, 2015 at 11:24 AM, Xose Vazquez Perez <xose.vazquez@gmail.com>
wrote:

> Benjamin Marzinski wrote:
>
> > virtio-blk devices don't report anything to use as a WWID, so
> > multipath shouldn't waste it's time checking them.
> >
> > Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
> > ---
> >  libmultipath/blacklist.c | 2 +-
> >  multipath.conf.defaults  | 2 +-
> >  2 files changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/libmultipath/blacklist.c b/libmultipath/blacklist.c
> > index 05f1697..cea128c 100644
> > --- a/libmultipath/blacklist.c
> > +++ b/libmultipath/blacklist.c
> > @@ -178,7 +178,7 @@ setup_default_blist (struct config * conf)
> >       if (store_ble(conf->blist_devnode, str, ORIGIN_DEFAULT))
> >               return 1;
> >
> > -     str = STRDUP("^(td|hd)[a-z]");
> > +     str = STRDUP("^(td|hd|vd)[a-z]");
>                                       ^
>                                       Missing "*" ?
>

[-- Attachment #1.2: Type: text/html, Size: 1847 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 10/15] multipath: blacklist virtio-blk devices
  2015-03-08 10:33 ` Christophe Varoqui
@ 2015-03-09 20:19   ` Benjamin Marzinski
  0 siblings, 0 replies; 4+ messages in thread
From: Benjamin Marzinski @ 2015-03-09 20:19 UTC (permalink / raw)
  To: Christophe Varoqui; +Cc: device-mapper development, Xose Vazquez Perez

On Sun, Mar 08, 2015 at 11:33:38AM +0100, Christophe Varoqui wrote:
>    Hi Xose,
>    it sure wouldn't hurt, be as there is no trailing "$" I guess the pattern
>    does its job as-is.
>    Please let me know if I'm reading this wrong.

You're reading it right. What's there will blacklist devices like "vdbx"
just fine. We could add a "$" and fully specify the pattern to make sure
we don't catch any devices by accident, but I don't really see that
happening with device names, and I've never seen any complaints about
the existing devnode balcklists that don't have them.

-Ben

>    Best regards,
>    Christophe Varoqui
>    OpenSVC
>    On Sun, Mar 8, 2015 at 11:24 AM, Xose Vazquez Perez
>    <[1]xose.vazquez@gmail.com> wrote:
> 
>      Benjamin Marzinski wrote:
> 
>      > virtio-blk devices don't report anything to use as a WWID, so
>      > multipath shouldn't waste it's time checking them.
>      >
>      > Signed-off-by: Benjamin Marzinski <[2]bmarzins@redhat.com>
>      > ---
>      >  libmultipath/blacklist.c | 2 +-
>      >  multipath.conf.defaults  | 2 +-
>      >  2 files changed, 2 insertions(+), 2 deletions(-)
>      >
>      > diff --git a/libmultipath/blacklist.c b/libmultipath/blacklist.c
>      > index 05f1697..cea128c 100644
>      > --- a/libmultipath/blacklist.c
>      > +++ b/libmultipath/blacklist.c
>      > @@ -178,7 +178,7 @@ setup_default_blist (struct config * conf)
>      >       if (store_ble(conf->blist_devnode, str, ORIGIN_DEFAULT))
>      >               return 1;
>      >
>      > -     str = STRDUP("^(td|hd)[a-z]");
>      > +     str = STRDUP("^(td|hd|vd)[a-z]");
>                                            ^
>                                            Missing "*" ?
> 
> References
> 
>    Visible links
>    1. mailto:xose.vazquez@gmail.com
>    2. mailto:bmarzins@redhat.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-03-09 20:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-08 10:24 [PATCH 10/15] multipath: blacklist virtio-blk devices Xose Vazquez Perez
2015-03-08 10:33 ` Christophe Varoqui
2015-03-09 20:19   ` Benjamin Marzinski
  -- strict thread matches above, loose matches on Subject: below --
2015-03-08  3:31 [PATCH 00/15] Multipath patch resync Benjamin Marzinski
2015-03-08  3:31 ` [PATCH 10/15] multipath: blacklist virtio-blk devices Benjamin Marzinski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.