[block] Allow SAN retry count to be reconfigured
authorMichael Brown <mcb30@ipxe.org>
Mon, 27 Mar 2017 10:06:16 +0000 (13:06 +0300)
committerMichael Brown <mcb30@ipxe.org>
Mon, 27 Mar 2017 12:41:22 +0000 (15:41 +0300)
commit6b385c9da388e63a741bb1bb4ee59419c0a141c5
treee8c5d8940634cd914197aad70d06e51468ce513d
parent6bd0060f265907dc4cd687926777c19fc3c7a683
[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>
src/core/sanboot.c
src/include/ipxe/dhcp.h
src/include/ipxe/sanboot.h