Files
libiscsi/test-tool/iscsi-multipath.c
David Disseldorp 0cfc593bbd test/multipath: add helper to obtain secondary sessions
A number of existing tests create a secondary iSCSI session by logging
into the target specified in the base sd during the test.

With multipath sessions now connected during iscsi-test-cu startup
(when launched with multiple URIs), secondary sessions can be
provided via multipath when available, rather than reconnecting.

This change adds a helper that conditionally returns the secondary
multipath device if available, or falls back to creating a new session
via the base sd target details.

Signed-off-by: David Disseldorp <ddiss@suse.de>
2015-09-21 15:11:37 +02:00

10 KiB