From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xose Vazquez Perez Subject: [PATCH 04/15] multipath-tools: replace spaces with a regex in IBM/"3303 NVDISK" Date: Wed, 10 Aug 2016 18:20:27 +0200 Message-ID: <1470846038-6590-4-git-send-email-xose.vazquez@gmail.com> References: <1470846038-6590-1-git-send-email-xose.vazquez@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1470846038-6590-1-git-send-email-xose.vazquez@gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com Cc: Brian King , device-mapper development , Xose Vazquez Perez List-Id: dm-devel.ids 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 Cc: Christophe Varoqui Cc: device-mapper development Signed-off-by: Xose Vazquez Perez --- 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