]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] scsi_debug: GET LBA STATUS response length correction
authorDouglas Gilbert <dgilbert@interlog.com>
Fri, 20 Jan 2012 00:30:00 +0000 (19:30 -0500)
committerJames Bottomley <JBottomley@Parallels.com>
Sun, 19 Feb 2012 14:08:57 +0000 (08:08 -0600)
commit46d2967c758f7f226a1abc286e98d9829c1b5275
tree545d1bbaedd7b103db196ddcf6e41fb7a10eb21d
parent83e53b128f4b8ec02222c54b052f0a7de43f2ea0
[SCSI] scsi_debug: GET LBA STATUS response length correction

The SCSI GET LBA STATUS command was introduced in SBC-3 revision
20 in September 2009. At that time the Parameter Data Length
field in the response had an associated byte offset of 8.

Then in SBC-3 revision 25 (October 2010) that byte offset was
changed to 4. The sg_get_lba_status utility in sg3_utils version
1.33 (released earlier today) has been changed to calculate
the newer response length. However the implementation of
GET LBA STATUS command in the scsi_debug driver still uses the
original byte offset.

modify the Parameter Data Length field value in the GET LBA STATUS command
response to comply with the change in SBC-3 revision 25

Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/scsi_debug.c