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 <[email protected]> Cc: Christophe Varoqui <[email protected]> Cc: device-mapper development <[email protected]> Signed-off-by: Xose Vazquez Perez <[email protected]> --- 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 -- dm-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/dm-devel
