[dm-devel] [PATCH 04/15] multipath-tools: replace spaces with a regex in IBM/"3303 NVDISK"
Xose Vazquez Perez
xose.vazquez at gmail.com
Wed Aug 10 16:20:27 UTC 2016
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 ba87ed2..e0c33dc 100644
--- a/libmultipath/hwtable.c
+++ b/libmultipath/hwtable.c
@@ -537,8 +537,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.7.4
More information about the dm-devel
mailing list