diff options
author | Michael Brown | 2017-03-26 14:12:11 +0200 |
---|---|---|
committer | Michael Brown | 2017-03-26 15:06:02 +0200 |
commit | bb5a54b79a414082d0b39d478a8b3332c56d68e5 (patch) | |
tree | c022d5b8ed56be56414eb007273aeacd57c44d37 /src/core/null_sanboot.c | |
parent | [block] Add dummy SAN device (diff) | |
download | ipxe-bb5a54b79a414082d0b39d478a8b3332c56d68e5.tar.gz ipxe-bb5a54b79a414082d0b39d478a8b3332c56d68e5.tar.xz ipxe-bb5a54b79a414082d0b39d478a8b3332c56d68e5.zip |
[block] Add basic multipath support
Add basic support for multipath block devices. The "sanboot" and
"sanhook" commands now accept a list of SAN URIs. We open all URIs
concurrently. The first connection to become available for issuing
block device commands is marked as the active path and used for all
subsequent commands; all other connections are then closed. Whenever
the active path fails, we reopen all URIs and repeat the process.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/core/null_sanboot.c')
-rw-r--r-- | src/core/null_sanboot.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/null_sanboot.c b/src/core/null_sanboot.c index 31a8a56b..42fb0682 100644 --- a/src/core/null_sanboot.c +++ b/src/core/null_sanboot.c @@ -26,8 +26,9 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); #include <errno.h> #include <ipxe/sanboot.h> -static int null_san_hook ( struct uri *uri __unused, - unsigned int drive __unused ) { +static int null_san_hook ( unsigned int drive __unused, + struct uri **uris __unused, + unsigned int count __unused ) { return -EOPNOTSUPP; } |