Skip to contentSkip to conversation

multipath: blacklist virtio-blk devices

PATCH Xose Vazquez Perez 3 participants 3 messages Mar 8, 2015 – Mar 9, 2015 Device mapper

lore
Share & tools
lore
#0 lore raw
Quoted 14 lines · Benjamin Marzinski

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

---
 libmultipath/blacklist.c | 2 +-
 multipath.conf.defaults  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
libmultipath/blacklist.c +0 -0
index 05f1697..cea128c 100644

libmultipath/blacklist.c setup_default_blist (struct config * conf) · line 181

Quoted 5 lines
libmultipath/blacklist.c +1 -1
@@ -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 "*" ?
#1 lore raw

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

Quoted 24 lines · Xose Vazquez Perez
Quoted 14 lines · Benjamin Marzinski

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

---
 libmultipath/blacklist.c | 2 +-
 multipath.conf.defaults  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
libmultipath/blacklist.c +0 -0
index 05f1697..cea128c 100644

libmultipath/blacklist.c setup_default_blist (struct config * conf) · line 181

Quoted 5 lines
libmultipath/blacklist.c +1 -1
@@ -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 "*" ?
#2 lore raw
Quoted 4 lines · Christophe Varoqui

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

Quoted 35 lines
   Best regards,
   Christophe Varoqui
   OpenSVC
   On Sun, Mar 8, 2015 at 11:24 AM, Xose Vazquez Perez
   <[1][email protected]> 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][email protected]>
     > ---
     >  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:[email protected]
2. mailto:[email protected]