Include upstream patch to whitelist devices with SCSI_IDENT property

Issue #1236
This commit is contained in:
Matthew Garrett 2016-04-27 13:22:21 -07:00
parent fadd27718a
commit a3d320d7d0
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,29 @@
Origin: http://git.opensvc.com/gitweb.cgi?p=multipath-tools/.git;a=commit;h=d041591e42b69e2ff99d9cc5c1111c83ccde3207
From: Hannes Reinecke <hare@suse.de>
Date: Thu, 10 Apr 2014 10:21:52 +0000 (+0200)
Subject: Use 'SCSI_IDENT_.*' as the default property whitelist
X-Git-Url: http://git.opensvc.com/gitweb.cgi?p=multipath-tools%2F.git;a=commitdiff_plain;h=d041591e42b69e2ff99d9cc5c1111c83ccde3207
Use 'SCSI_IDENT_.*' as the default property whitelist
59-scsi-sg_utils.rules export the VPD pages as
SCSI_IDENT_<association>_<type>.
So whenever we have a SCSI_IDENT_* property we know it
has come from VPD pages and we have a legit device.
Signed-off-by: Hannes Reinecke <hare@suse.de>
---
diff --git a/libmultipath/blacklist.c b/libmultipath/blacklist.c
index cea128c..30c5031 100644
--- a/libmultipath/blacklist.c
+++ b/libmultipath/blacklist.c
@@ -196,7 +196,7 @@ setup_default_blist (struct config * conf)
if (store_ble(conf->blist_devnode, str, ORIGIN_DEFAULT))
return 1;
- str = STRDUP("(ID_SCSI_VPD|ID_WWN)");
+ str = STRDUP("(SCSI_IDENT_.*|ID_WWN)");
if (!str)
return 1;
if (store_ble(conf->elist_property, str, ORIGIN_DEFAULT))

View File

@ -25,6 +25,7 @@ DEPEND="${RDEPEND}
src_prepare() {
epatch "${FILESDIR}"/${P}-makefile.patch
epatch "${FILESDIR}"/${P}-systemd-pkgconfig.patch
epatch "${FILESDIR}"/${P}-property-whitelist-SCSI_IDENT.patch
epatch_user
}