multipathd: Fixup double unlock on config_lock

config_lock was not correctly unlocked.

Signed-off-by: Hannes Reinecke <hare@suse.de>
- Update Changelog.
Use sysfs attribute vpd_pg80 to read serial number

There is no need to issue an ioctl to read the serial number
as it's already present in sysfs. And we should not print
out the serial number unconditionally but rather check
the discovery mask.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Ignore devices when sysfs_get_tgt_nodename fails

If sysfs_get_tgt_nodename fails we should not try to use this
device.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Skip USB devices during discovery

Some USB devices even present VPD pages, but they still remain
USB devices, and we shouldn't run multipath on those.
So detect USB devices properly and skip them during discovery.

References: bnc#865577

Signed-off-by: Hannes Reinecke <hare@suse.de>
- Update Changelog.
Create rc symlinks correctly

The rc symlinks should be created during installation.

Signed-off-by: Hannes Reinecke <hare@suse.de>
- Update Changelog.
multipathd: Fix crash in recv_packet()

recv_packet() might stall, so the config values might become
invalid if eg a reconfigure has been called during waiting.

References: bnc#896678

Signed-off-by: Hannes Reinecke <hare@suse.de>
Fixup rc symlink generation

Should be prefixed with $RPM_BUILD_ROOT to avoid rpmlint errors

Signed-off-by: Hannes Reinecke <hare@suse.de>
- Update Changelog.