libmultipath: filter for missing property in get_refwwid()

get_refwwid() needs to filter for missing udev properties,
otherwise it'll accept just about any SCSI device.

References: bnc#862250

Signed-off-by: Hannes Reinecke <hare@suse.de>
Do not flush all multipath tables on shutdown

Upon shutdown we should not attempt to flush all multipath
tables, as this might cause the system to hang.

References: bnc#854025

Signed-off-by: Hannes Reinecke <hare@suse.de>
libmultipath: Prefer deprecated 'getuid' callout

We need first to check if the deprecated 'getuid' callout
should be used, otherwise it might never be called.

References: bnc#861534

Signed-off-by: Hannes Reinecke <hare@suse.de>
libmultipath: Skip paths with empty wwid

If the WWID is empty this is pretty much a terminal error, as
we don't have anything to identify the multipath device.
So skip those devices during discovery.

References: bnc#861534

Signed-off-by: Hannes Reinecke <hare@suse.de>
libmultipath: correctly terminate string in strlcpy()

strlcpy would not add a trailing '\0' if the string buffer
was longer than the string, causing getuid callout to
always fail.

References: bnc#861534

Signed-off-by: Hannes Reinecke <hare@suse.de>
libmultipath: Don't chop const strings

multipath was chopping sysfs attr strings in order to make sure that
ending whitespace didn't cause them to overflow their buffer. However
those strings were const strings. This patch makes multipath check how
much of the string length is ending whitespace, so that it can tell if
it will really overflow the buffer without chopping the const string.

[hare: ported to SLES11 SP3]

Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
Signed-off-by: Hannes Reinecke <hare@suse.de>
multipath: Include defaults for HP P6300

References: bnc#763632

Signed-off-by: Hannes Reinecke <hare@suse.de>
[PATCH] hwtable: Add vendor ID, and update defaults for NetApp

This patch provides hwtable updates for NETAPP/LSI/ENGENIO E-Series
arrays, utilizing new features to detect TPGS support, automatically.

Signed-off-by: Sean Stewart <Sean.Stewart@netapp.com>
Sync the Netapp INF-01-00 defaults to multipath.conf.defaults

References: bnc#846662

Suggested by Xose Vasquez Perez <xose.vazquez@gmail.com>
Signed-off-by: Hannes Reinecke <hare@suse.de>
- Update Changelog