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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user