TESTS: Add a new test that does a one block write using unsilicited immediate data

As part of the test also validate the PDU that libiscsi generates and verify that
1, the PDU we send has the F flag set
2, that datasegmentlength for the PDU is one block
This commit is contained in:
Ronnie Sahlberg
2012-12-01 10:45:42 -08:00
parent edb0df07d6
commit 04970ef95e
5 changed files with 193 additions and 2 deletions

View File

@@ -102,7 +102,7 @@ int iscsi_set_immediate_data(struct iscsi_context *iscsi, enum iscsi_immediate_d
* This can be set on a context before it has been logged in to the target
* and controls how the initiator will try to negotiate the initial r2t.
*
* Default is for libiscsi to try to negotiate ISCSI_INITIAL_R2T_YES
* Default is for libiscsi to try to negotiate ISCSI_INITIAL_R2T_NO
*/
enum iscsi_initial_r2t {
ISCSI_INITIAL_R2T_NO = 0,