[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>
This commit is contained in:
+1
-1
@@ -378,7 +378,7 @@ int pxe_menu_boot ( struct net_device *netdev ) {
|
||||
return -ENOMEM;
|
||||
|
||||
/* Attempt boot */
|
||||
rc = uriboot ( uri, NULL, 0, URIBOOT_NO_SAN );
|
||||
rc = uriboot ( uri, NULL, 0, 0, URIBOOT_NO_SAN );
|
||||
uri_put ( uri );
|
||||
return rc;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user