Negotiate ImmediateData during login and store the result in iscsi->

We will use this later to decide when we should send unsolicited imemdiate
data to the target. Currently we always send unsolicited immediate data
but targets configured to not allow immediate data may refuce this and
turn an error.
This commit is contained in:
Ronnie Sahlberg
2011-01-02 12:59:41 +11:00
parent 32228a4509
commit 1f1e5111d4
3 changed files with 21 additions and 1 deletions

View File

@@ -65,6 +65,8 @@ iscsi_create_context(const char *initiator_name)
iscsi->max_recv_data_segment_length = 262144;
iscsi->want_initial_r2t = ISCSI_INITIAL_R2T_NO;
iscsi->use_initial_r2t = ISCSI_INITIAL_R2T_NO;
iscsi->want_immediate_data = ISCSI_IMMEDIATE_DATA_YES;
iscsi->use_immediate_data = ISCSI_IMMEDIATE_DATA_YES;
return iscsi;
}