|
From: <vl...@us...> - 2010-03-17 17:40:23
|
Revision: 1548
http://scst.svn.sourceforge.net/scst/?rev=1548&view=rev
Author: vlnb
Date: 2010-03-17 17:40:17 +0000 (Wed, 17 Mar 2010)
Log Message:
-----------
Set bufflen for not expected transfer len case to max to allow, e.g., to get immediate iSCSI data. Otherwise, the iSCSI target will get a too low buffer error and have to close connection.
Modified Paths:
--------------
trunk/scst/src/scst_targ.c
Modified: trunk/scst/src/scst_targ.c
===================================================================
--- trunk/scst/src/scst_targ.c 2010-03-17 14:03:41 UTC (rev 1547)
+++ trunk/scst/src/scst_targ.c 2010-03-17 17:40:17 UTC (rev 1548)
@@ -632,6 +632,9 @@
cmd->bufflen);
PRINT_BUFF_FLAG(TRACE_MINOR, "Suspicious CDB",
cmd->cdb, cmd->cdb_len);
+ /* Needed, e.g., to get immediate iSCSI data */
+ cmd->bufflen = max(cmd->bufflen,
+ cmd->expected_transfer_len);
}
#endif
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|