From bb5a54b79a414082d0b39d478a8b3332c56d68e5 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Sun, 26 Mar 2017 15:12:11 +0300 Subject: [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 --- src/include/usr/autoboot.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/include/usr') diff --git a/src/include/usr/autoboot.h b/src/include/usr/autoboot.h index 4db226b9c..c62d06c6f 100644 --- a/src/include/usr/autoboot.h +++ b/src/include/usr/autoboot.h @@ -30,7 +30,8 @@ extern void set_autoboot_busloc ( unsigned int bus_type, unsigned int location ); extern void set_autoboot_ll_addr ( const void *ll_addr, size_t len ); -extern int uriboot ( struct uri *filename, struct uri *root_path, int drive, +extern int uriboot ( struct uri *filename, struct uri **root_paths, + unsigned int root_path_count, int drive, unsigned int flags ); extern struct uri * fetch_next_server_and_filename ( struct settings *settings ); -- cgit v1.2.3-55-g7522