multipath: Implement 'property' blacklist
authorHannes Reinecke <hare@suse.de>
Tue, 16 Jul 2013 07:13:13 +0000 (09:13 +0200)
committerChristophe Varoqui <christophe.varoqui@opensvc.com>
Tue, 16 Jul 2013 19:50:42 +0000 (21:50 +0200)
commita6ff4f957c78bd15c49278ad359671a705eaf4b5
treee435b88f023d92a2702a29b138754f3e54e82010
parent277424fbcfc44b65e87fe51c24206cf47596b262
multipath: Implement 'property' blacklist

Multipath can only handle device properly which support the VPD
page 0x83. Originally this was ensured by 'scsi_id', which would
not present an ID_SERIAL value in these cases.
With the move to udev 'ID_SERIAL' is now always present, so
multipath would try to attach to _all_ SCSI devices.
This patch implements an 'property' blacklist, which allows to
blacklist a device based on the existence of udev properties.
Any device not providing the udev property from the whitelist
will be ignored.
The default whitelist is set to '(ID_WWN|ID_SCSI_VPD)'.

Signed-off-by: Hannes Reinecke <hare@suse.de>
libmultipath/blacklist.c
libmultipath/blacklist.h
libmultipath/config.c
libmultipath/config.h
libmultipath/dict.c
libmultipath/discovery.c
libmultipath/print.c
multipath.conf.defaults
multipath/multipath.conf.5