From 6b385c9da388e63a741bb1bb4ee59419c0a141c5 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 27 Mar 2017 13:06:16 +0300 Subject: [block] Allow SAN retry count to be reconfigured Allow the SAN retry count to be configured via the ${san-retry} setting, defaulting to the current value of 10 retries if not specified. Note that setting a retry count of zero is inadvisable, since iSCSI targets in particular will often report spurious errors such as "power on occurred" for the first few commands. Signed-off-by: Michael Brown --- src/include/ipxe/sanboot.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/include/ipxe/sanboot.h') diff --git a/src/include/ipxe/sanboot.h b/src/include/ipxe/sanboot.h index a8b0291d..64b665a5 100644 --- a/src/include/ipxe/sanboot.h +++ b/src/include/ipxe/sanboot.h @@ -71,6 +71,8 @@ struct san_device { /** Driver private data */ void *priv; + /** Number of paths */ + unsigned int paths; /** Current active path */ struct san_path *active; /** List of opened SAN paths */ -- cgit v1.2.3-55-g7522