scst_lib: Fix READ POSITION parsing

For code 08h (EXTENDED FORM) minimal response length is 32, see table
"READ POSITION data format, extended form". In SSC-[2,3] table "READ
POSITION service action codes" requests minimum response lenght 28
bytes, but it is an apparent typo, because the actual data format is 32
bytes long. In SSC-4 it is fixed.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5740 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2014-08-28 01:26:11 +00:00
parent 1a52f22256
commit 4aa8ab7be0

View File

@@ -6838,7 +6838,7 @@ static int get_cdb_info_read_pos(struct scst_cmd *cmd,
cmd->bufflen = 32;
break;
case 8:
cmd->bufflen = max(28, cmd->bufflen);
cmd->bufflen = max(32, cmd->bufflen);
break;
default:
PRINT_ERROR("READ POSITION: Invalid service action %x",