mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-20 12:11:26 +00:00
scst_local: Change max_lun into SCST_MAX_LUN (16383)
Today SCST does not support LUN numbers >= 16384. Additionally, there is a bug in older Linux initiator systems that prevents proper handling of LUN numbers >= 2**32. See also Hannes Reinecke, scsi_scan: Fixup scsilun_to_int(), June 25, 2014 (commit ID d9e5d6183715e691b37afd3785c311d05cd1338d). Hence set max_lun to 16383. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5785 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -1678,7 +1678,7 @@ static int scst_local_driver_probe(struct device *dev)
|
||||
sess->shost = hpnt;
|
||||
|
||||
hpnt->max_id = 0; /* Don't want more than one id */
|
||||
hpnt->max_lun = -1ll;
|
||||
hpnt->max_lun = SCST_MAX_LUN;
|
||||
|
||||
/*
|
||||
* Because of a change in the size of this field at 2.6.26
|
||||
|
||||
Reference in New Issue
Block a user