[dm-devel] [PATCH 16/94] multipath-tools: replace spaces with a regex in IBM/"3303 NVDISK"
tang.wenjun3 at zte.com.cn
tang.wenjun3 at zte.com.cn
Fri Oct 14 01:55:58 UTC 2016
From: Xose Vazquez Perez <xose.vazquez at gmail.com>
Replace six spaces with any number of them.
Exact regex is "3303[ ]{6,6}NVDISK", but it looks too overloaded.
Tested with a regex checker from:
http://eli.thegreenplace.net/2012/11/14/some-notes-on-posix-regular-expressions
Cc: Brian King <brking at linux.vnet.ibm.com>
Cc: Christophe Varoqui <christophe.varoqui at opensvc.com>
Cc: device-mapper development <dm-devel at redhat.com>
Signed-off-by: Xose Vazquez Perez <xose.vazquez at gmail.com>
---
libmultipath/hwtable.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libmultipath/hwtable.c b/libmultipath/hwtable.c
index 9a4ab6e..9366829 100644
--- a/libmultipath/hwtable.c
+++ b/libmultipath/hwtable.c
@@ -529,8 +529,9 @@ static struct hwentry default_hw[] = {
.no_path_retry = (300 / DEFAULT_CHECKINT),
},
{
+ /* 3303 NVDISK */
.vendor = "IBM",
- .product = "3303 NVDISK",
+ .product = "3303[ ]+NVDISK",
.pgfailback = FAILBACK_UNDEF,
.no_path_retry = (300 / DEFAULT_CHECKINT),
},
--
2.8.1.windows.1
More information about the dm-devel
mailing list