summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/sanboot.h
diff options
context:
space:
mode:
authorMichael Brown2017-03-27 12:06:16 +0200
committerMichael Brown2017-03-27 14:41:22 +0200
commit6b385c9da388e63a741bb1bb4ee59419c0a141c5 (patch)
treee8c5d8940634cd914197aad70d06e51468ce513d /src/include/ipxe/sanboot.h
parent[time] Add sleep_fixed() function to sleep without checking for Ctrl-C (diff)
downloadipxe-6b385c9da388e63a741bb1bb4ee59419c0a141c5.tar.gz
ipxe-6b385c9da388e63a741bb1bb4ee59419c0a141c5.tar.xz
ipxe-6b385c9da388e63a741bb1bb4ee59419c0a141c5.zip
[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 <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/sanboot.h')
-rw-r--r--src/include/ipxe/sanboot.h2
1 files changed, 2 insertions, 0 deletions
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 */