Make the exploring of all luns supported by an HBA more of a tunable.
authorPeter Avalos <pavalos@dragonflybsd.org>
Sat, 1 Dec 2007 22:49:49 +0000 (22:49 +0000)
committerPeter Avalos <pavalos@dragonflybsd.org>
Sat, 1 Dec 2007 22:49:49 +0000 (22:49 +0000)
commit4cf33ad5ea4ae5e48426201877faa7c33f1d2f95
tree514127dd64e528829c53ce8d9a3b3160e60f95fd
parentbc6e3c7304f3cb00e2182a0d2d1aaa5187901f73
Make the exploring of all luns supported by an HBA more of a tunable.

If we're probing luns, and each probe succeeds, we keep going past
lun 7 if we're a SCSI3 or better device (until we fail to probe).

If we're probing luns, and a probe fails, we only keep going if
we're quirked *for* it (CAM_QUIRK_HILUNS), and if we're not quirked
*against* it (CAM_QUIRK_NOHILUNS), or we're a SCSI3 or better device
and the tunable (kern.cam.cam_srch_hi) is set non-zero.

Obtained-from: FreeBSD
sys/bus/cam/cam_xpt.c