mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-18 21:26:31 +00:00
Custom parse improvements
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3281 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
+11
-1
@@ -192,8 +192,18 @@ static int do_parse(struct vdisk_cmd *vcmd)
|
||||
reply->data_direction = cmd->expected_data_direction;
|
||||
reply->data_len = cmd->expected_transfer_len;
|
||||
reply->bufflen = cmd->expected_transfer_len;
|
||||
reply->out_bufflen = cmd->expected_out_transfer_len;
|
||||
reply->cdb_len = cmd->cdb_len;
|
||||
reply->op_flags = reply->op_flags;
|
||||
|
||||
if (cmd->op_flags & SCST_INFO_VALID)
|
||||
reply->op_flags = cmd->op_flags;
|
||||
else {
|
||||
TRACE_DBG_SPECIAL("Extra parse (op %x)", cmd->cdb[0]);
|
||||
|
||||
if (reply->data_direction & SCST_DATA_WRITE)
|
||||
reply->op_flags |= SCST_WRITE_MEDIUM;
|
||||
reply->op_flags |= SCST_INFO_VALID;
|
||||
}
|
||||
|
||||
out:
|
||||
TRACE_EXIT_RES(res);
|
||||
|
||||
Reference in New Issue
Block a user