![agc](/assets/img/avatar_default.png)
Revert Max LBA calculation when returning the Maximum LBA from the target to the iinitiator, following an email conversation with Jonathan Kollasch, who points out a number of things: + the NetBSD scsipi driver reads the value returned by the drive and adds one to it, so that standard SCSI drives return the 0-based Max LBA in a READ CAPACITY command. + it is up to the initiator to add 1 to the Max LBA to find out the size of the LUN (Jonathan verified this by using the UNH iSCSI initiator on to a NetBSD target) + an analogous change to the NetBSD initiator (revision 1.4 of iscsifs.c) is needed.
…
…
…
…
…
…
…
…
…
Description
No description provided
Languages
C
85.3%
Roff
7.2%
Assembly
3.1%
Shell
1.7%
Makefile
1.2%
Other
0.9%