Skip to contentSkip to conversation

multipath-tools: move code up in Makefile

PATCH In review Xose Vazquez Perez 1 participant 2 messages Aug 11, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 10/11 multipath-tools: move code up in Makefile

Cc Christophe Varoqui <[email protected]>
Cc device-mapper development <[email protected]>
---
 Makefile | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
Makefile +6 -6
index 7786c83..95c7dfb 100644
@@ -16,6 +16,12 @@ ifeq ($(KRNLSRC),)
 	endif
 endif
 
+ifeq ($(MULTIPATH_VERSION),)
+	VERSION = $(shell basename ${PWD} | cut -d'-' -f3)
+else
+	VERSION = $(MULTIPATH_VERSION)
+endif
+
 export KRNLSRC
 export KRNLOBJ
 
@@ -30,12 +36,6 @@ BUILDDIRS = \
 	mpathpersist \
 	kpartx
 
-ifeq ($(MULTIPATH_VERSION),)
-	VERSION = $(shell basename ${PWD} | cut -d'-' -f3)
-else
-	VERSION = $(MULTIPATH_VERSION)
-endif
-
 all: recurse
 
 recurse:
Signature · 1 line
2.7.4
#1 lore raw

PATCH 11/11 multipath-tools: modify product regex in HDS devices

regex for product="DF" is tooooo wide.
Also changed for VSP to "^OPEN-"

I asked Matthias before make this change.

Cc Matthias Rudolph <[email protected]>
Cc Christophe Varoqui <[email protected]>
Cc device-mapper development <[email protected]>
---
 libmultipath/hwtable.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
libmultipath/hwtable.c +2 -2
index 62633b1..a69002f 100644
@@ -278,14 +278,14 @@ static struct hwentry default_hw[] = {
 	{
 		/* USP-V, HUS VM, VSP, VSP G1000 and VSP GX00 families */
 		.vendor        = "(HITACHI|HP)",
-		.product       = "OPEN-",
+		.product       = "^OPEN-",
 		.pgpolicy      = MULTIBUS,
 		.pgfailback    = FAILBACK_UNDEF,
 	},
 	{
 		/* AMS 2000 and HUS 100 families */
 		.vendor        = "HITACHI",
-		.product       = "DF",
+		.product       = "^DF",
 		.features      = "1 queue_if_no_path",
 		.pgpolicy      = GROUP_BY_PRIO,
 		.pgfailback    = -FAILBACK_IMMEDIATE,
Signature · 1 line
2.7.4