scsi: define SCSI_DEVICE_MAX_LUN_COUNT to set a custom max lun count.

* virtio_scsi can have 16384 luns, though we cap at 256 as our scsi_ccb
only uses uchar as a type for target_lun and target_id members.
* minor code cleanup in scsi_scan_bus().
This commit is contained in:
Jérôme Duval
2013-11-09 13:09:20 +01:00
parent 1ab38414b1
commit a0f124211a
5 changed files with 20 additions and 11 deletions
+2
View File
@@ -288,6 +288,8 @@ typedef struct {
// maximum targets on scsi bus
#define SCSI_DEVICE_MAX_TARGET_COUNT "scsi/max_target_count"
// maximum luns on scsi bus
#define SCSI_DEVICE_MAX_LUN_COUNT "scsi/max_lun_count"
// directory containing links to peripheral drivers
#define SCSI_PERIPHERAL_DRIVERS_DIR "scsi"