CA-113323: Wait for multipath links under mapper to be created before proceeding with SR creation.

Signed-off-by: Chandrika Srinivasan <chandrika.srinivasan@citrix.com>
Reviewed-by: Vineeth Thampi Raveendran <vineeth.thampi@citrix.com>
CA-113323: Do not issue udevadm trigger on SR creation.

Rolled back original fix for CA-105130 which triggers udev events
for all devices in the system when a new SR is created. New events
for existing devices coupled with the ignore_device option in the
event handling rules caused the device to be removed.

The bug addressed in CA-105130 doesn't exist in the new release and
it should be safe to roll back the patch.

Signed-off-by: Chandrika Srinivasan <chandrika.srinivasan@citrix.com>
Reviewed-by: Vineeth Thampi Raveendran <vineeth.thampi@citrix.com>
CA-113323: Use new udev device links for setting disk scheduler.

Links under /dev/disk/by-scsid have changed for the new kernel.
Setting scheduler for block devices when multipath is enabled
was broken due to reference to the old style of links. Updated
code to reflect corresponding changes in udev.

Signed-off-by: Chandrika Srinivasan <chandrika.srinivasan@citrix.com>
Reviewed-by: Vineeth Thampi Raveendran <vineeth.thampi@citrix.com>
CA-119099: Don't rely on existence of mount point for SR auto-attach

Signed-off-by: Thanos Makatos <thanos.makatos@citrix.com>
Signed-off-by: Chandrika Srinivasan <chandrika.srinivasan@citrix.com>
Reviewed-by: Vineeth Thampi Raveendran <vineeth.thampi@citrix.com>
CA-122566: Fixed boot from multipathed SAN

A bug in Centos 6.4 multipath causes unnecessary delays
in root disk partition creation if detect_prio is set to yes
in multipath.conf(default value) and the device doesn't support
it. Setting detect_prio to no provides a workaround for the problem
and allows boot from a multipathed SAN. Bug is fixed upstream
in Centos 6.5 multipath.

Signed-off-by: Chandrika Srinivasan <chandrika.srinivasan@citrix.com>
Reviewed-by: Vineeth Thampi Raveendran <vineeth.thampi@citrix.com>
Merge changes for CA-123729

Signed-off-by: Chandrika Srinivasan <chandrika.srinivasan@citrix.com>