Wait for multipath links 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: Fix storage test case iSCSIMulti2a

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: Fix storage test case iSCSIMulti2a

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: Fix boot from SAN multipathed

detect_prio cause a delay which make system not found root system at
the right time.

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