Spelling fixes: Dont => Don't
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
committed by
Ronnie Sahlberg
parent
c606dd50f9
commit
120b308741
@@ -201,11 +201,11 @@ struct iscsi_scsi_cbdata {
|
|||||||
struct iscsi_pdu {
|
struct iscsi_pdu {
|
||||||
struct iscsi_pdu *next;
|
struct iscsi_pdu *next;
|
||||||
|
|
||||||
/* There will not be a response to this pdu, so delete it once it is sent on the wire. Dont put it on the wait-queue */
|
/* There will not be a response to this pdu, so delete it once it is sent on the wire. Don't put it on the wait-queue */
|
||||||
#define ISCSI_PDU_DELETE_WHEN_SENT 0x00000001
|
#define ISCSI_PDU_DELETE_WHEN_SENT 0x00000001
|
||||||
/* Dont call the CANCEL callback when the context is destroyed */
|
/* Don't call the CANCEL callback when the context is destroyed */
|
||||||
#define ISCSI_PDU_NO_CALLBACK 0x00000002
|
#define ISCSI_PDU_NO_CALLBACK 0x00000002
|
||||||
/* When reconnecting, just drop all these PDUs. Dont re-queue them.
|
/* When reconnecting, just drop all these PDUs. Don't re-queue them.
|
||||||
* This includes any DATA-OUT PDU as well as all NOPs.
|
* This includes any DATA-OUT PDU as well as all NOPs.
|
||||||
*/
|
*/
|
||||||
#define ISCSI_PDU_DROP_ON_RECONNECT 0x00000004
|
#define ISCSI_PDU_DROP_ON_RECONNECT 0x00000004
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ iscsi_testunitready_cb(struct iscsi_context *iscsi, int status,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Dont fail the login just because there is no medium in the device */
|
/* Don't fail the login just because there is no medium in the device */
|
||||||
if (status != 0
|
if (status != 0
|
||||||
&& task->sense.key == SCSI_SENSE_NOT_READY
|
&& task->sense.key == SCSI_SENSE_NOT_READY
|
||||||
&& (task->sense.ascq == SCSI_SENSE_ASCQ_MEDIUM_NOT_PRESENT
|
&& (task->sense.ascq == SCSI_SENSE_ASCQ_MEDIUM_NOT_PRESENT
|
||||||
@@ -79,12 +79,12 @@ iscsi_testunitready_cb(struct iscsi_context *iscsi, int status,
|
|||||||
status = 0;
|
status = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Dont fail the login just because the medium is reserved */
|
/* Don't fail the login just because the medium is reserved */
|
||||||
if (status == SCSI_STATUS_RESERVATION_CONFLICT) {
|
if (status == SCSI_STATUS_RESERVATION_CONFLICT) {
|
||||||
status = 0;
|
status = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Dont fail the login just because there is a sanitize in progress */
|
/* Don't fail the login just because there is a sanitize in progress */
|
||||||
if (status != 0
|
if (status != 0
|
||||||
&& task->sense.key == SCSI_SENSE_NOT_READY
|
&& task->sense.key == SCSI_SENSE_NOT_READY
|
||||||
&& task->sense.ascq == SCSI_SENSE_ASCQ_SANITIZE_IN_PROGRESS) {
|
&& task->sense.ascq == SCSI_SENSE_ASCQ_SANITIZE_IN_PROGRESS) {
|
||||||
@@ -207,7 +207,7 @@ void iscsi_defer_reconnect(struct iscsi_context *iscsi)
|
|||||||
SLIST_REMOVE(&iscsi->outqueue, pdu);
|
SLIST_REMOVE(&iscsi->outqueue, pdu);
|
||||||
if ( !(pdu->flags & ISCSI_PDU_NO_CALLBACK)) {
|
if ( !(pdu->flags & ISCSI_PDU_NO_CALLBACK)) {
|
||||||
/* If an error happened during connect/login,
|
/* If an error happened during connect/login,
|
||||||
we dont want to call any of the callbacks.
|
we don't want to call any of the callbacks.
|
||||||
*/
|
*/
|
||||||
if (iscsi->is_loggedin) {
|
if (iscsi->is_loggedin) {
|
||||||
pdu->callback(iscsi, SCSI_STATUS_CANCELLED,
|
pdu->callback(iscsi, SCSI_STATUS_CANCELLED,
|
||||||
@@ -219,7 +219,7 @@ void iscsi_defer_reconnect(struct iscsi_context *iscsi)
|
|||||||
while ((pdu = iscsi->waitpdu)) {
|
while ((pdu = iscsi->waitpdu)) {
|
||||||
SLIST_REMOVE(&iscsi->waitpdu, pdu);
|
SLIST_REMOVE(&iscsi->waitpdu, pdu);
|
||||||
/* If an error happened during connect/login,
|
/* If an error happened during connect/login,
|
||||||
we dont want to call any of the callbacks.
|
we don't want to call any of the callbacks.
|
||||||
*/
|
*/
|
||||||
if (iscsi->is_loggedin) {
|
if (iscsi->is_loggedin) {
|
||||||
pdu->callback(iscsi, SCSI_STATUS_CANCELLED,
|
pdu->callback(iscsi, SCSI_STATUS_CANCELLED,
|
||||||
@@ -329,10 +329,10 @@ try_again:
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (pdu->flags & ISCSI_PDU_DROP_ON_RECONNECT) {
|
if (pdu->flags & ISCSI_PDU_DROP_ON_RECONNECT) {
|
||||||
/* We dont want to requeue things like DATA-OUT since these guys
|
/* We don't want to requeue things like DATA-OUT since these guys
|
||||||
* will be reissued automatically anyway once the corresponding
|
* will be reissued automatically anyway once the corresponding
|
||||||
* write command is replayed.
|
* write command is replayed.
|
||||||
* Similarly we dont want to requeue NOPs.
|
* Similarly we don't want to requeue NOPs.
|
||||||
*/
|
*/
|
||||||
iscsi_free_pdu(old_iscsi, pdu);
|
iscsi_free_pdu(old_iscsi, pdu);
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
@@ -187,7 +187,7 @@ iscsi_process_text_reply(struct iscsi_context *iscsi, struct iscsi_pdu *pdu,
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
iscsi_set_error(iscsi, "Dont know how to handle "
|
iscsi_set_error(iscsi, "Don't know how to handle "
|
||||||
"discovery string : %s", ptr);
|
"discovery string : %s", ptr);
|
||||||
pdu->callback(iscsi, SCSI_STATUS_ERROR, NULL,
|
pdu->callback(iscsi, SCSI_STATUS_ERROR, NULL,
|
||||||
pdu->private_data);
|
pdu->private_data);
|
||||||
|
|||||||
@@ -296,7 +296,7 @@ iscsi_destroy_context(struct iscsi_context *iscsi)
|
|||||||
while ((pdu = iscsi->outqueue)) {
|
while ((pdu = iscsi->outqueue)) {
|
||||||
SLIST_REMOVE(&iscsi->outqueue, pdu);
|
SLIST_REMOVE(&iscsi->outqueue, pdu);
|
||||||
if ( !(pdu->flags & ISCSI_PDU_NO_CALLBACK)) {
|
if ( !(pdu->flags & ISCSI_PDU_NO_CALLBACK)) {
|
||||||
/* If an error happened during connect/login, we dont want to
|
/* If an error happened during connect/login, we don't want to
|
||||||
call any of the callbacks.
|
call any of the callbacks.
|
||||||
*/
|
*/
|
||||||
if (iscsi->is_loggedin) {
|
if (iscsi->is_loggedin) {
|
||||||
@@ -308,7 +308,7 @@ iscsi_destroy_context(struct iscsi_context *iscsi)
|
|||||||
}
|
}
|
||||||
while ((pdu = iscsi->waitpdu)) {
|
while ((pdu = iscsi->waitpdu)) {
|
||||||
SLIST_REMOVE(&iscsi->waitpdu, pdu);
|
SLIST_REMOVE(&iscsi->waitpdu, pdu);
|
||||||
/* If an error happened during connect/login, we dont want to
|
/* If an error happened during connect/login, we don't want to
|
||||||
call any of the callbacks.
|
call any of the callbacks.
|
||||||
*/
|
*/
|
||||||
if (iscsi->is_loggedin) {
|
if (iscsi->is_loggedin) {
|
||||||
|
|||||||
@@ -284,7 +284,7 @@ iscsi_scsi_command_async(struct iscsi_context *iscsi, int lun,
|
|||||||
&& pdu->payload_len < (uint32_t)task->expxferlen
|
&& pdu->payload_len < (uint32_t)task->expxferlen
|
||||||
&& pdu->payload_len < iscsi->first_burst_length) {
|
&& pdu->payload_len < iscsi->first_burst_length) {
|
||||||
/* We have more data to send, and we are allowed to send
|
/* We have more data to send, and we are allowed to send
|
||||||
* unsolicited data, so dont flag this PDU as final.
|
* unsolicited data, so don't flag this PDU as final.
|
||||||
*/
|
*/
|
||||||
flags &= ~ISCSI_PDU_SCSI_FINAL;
|
flags &= ~ISCSI_PDU_SCSI_FINAL;
|
||||||
}
|
}
|
||||||
@@ -518,7 +518,7 @@ iscsi_process_scsi_data_in(struct iscsi_context *iscsi, struct iscsi_pdu *pdu,
|
|||||||
}
|
}
|
||||||
dsl = scsi_get_uint32(&in->hdr[4]) & 0x00ffffff;
|
dsl = scsi_get_uint32(&in->hdr[4]) & 0x00ffffff;
|
||||||
|
|
||||||
/* Dont add to reassembly buffer if we already have a user buffer */
|
/* Don't add to reassembly buffer if we already have a user buffer */
|
||||||
if (task->iovector_in.iov == NULL) {
|
if (task->iovector_in.iov == NULL) {
|
||||||
if (iscsi_add_data(iscsi, &pdu->indata, in->data, dsl, 0) != 0) {
|
if (iscsi_add_data(iscsi, &pdu->indata, in->data, dsl, 0) != 0) {
|
||||||
iscsi_set_error(iscsi, "Out-of-memory: failed to add data "
|
iscsi_set_error(iscsi, "Out-of-memory: failed to add data "
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ iscsi_nop_out_async(struct iscsi_context *iscsi, iscsi_command_cb cb,
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* We dont want to requeue these on reconnect */
|
/* We don't want to requeue these on reconnect */
|
||||||
pdu->flags |= ISCSI_PDU_DROP_ON_RECONNECT;
|
pdu->flags |= ISCSI_PDU_DROP_ON_RECONNECT;
|
||||||
|
|
||||||
/* immediate flag */
|
/* immediate flag */
|
||||||
|
|||||||
@@ -498,7 +498,7 @@ iscsi_process_pdu(struct iscsi_context *iscsi, struct iscsi_in_pdu *in)
|
|||||||
is_finished = 0;
|
is_finished = 0;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
iscsi_set_error(iscsi, "Dont know how to handle "
|
iscsi_set_error(iscsi, "Don't know how to handle "
|
||||||
"opcode 0x%02x", opcode);
|
"opcode 0x%02x", opcode);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -522,7 +522,7 @@ iscsi_read_from_socket(struct iscsi_context *iscsi)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (in->hdr_pos < ISCSI_HEADER_SIZE) {
|
if (in->hdr_pos < ISCSI_HEADER_SIZE) {
|
||||||
/* we dont have the full header yet, so return */
|
/* we don't have the full header yet, so return */
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ int T0105_read10_invalid(const char *initiator, const char *url)
|
|||||||
task->xfer_dir = SCSI_XFER_READ;
|
task->xfer_dir = SCSI_XFER_READ;
|
||||||
task->expxferlen = 0;
|
task->expxferlen = 0;
|
||||||
|
|
||||||
/* we dont want autoreconnect since some targets will drop the session
|
/* we don't want autoreconnect since some targets will drop the session
|
||||||
* on this condition.
|
* on this condition.
|
||||||
*/
|
*/
|
||||||
iscsi_set_noautoreconnect(iscsi, 1);
|
iscsi_set_noautoreconnect(iscsi, 1);
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ int T0122_read6_invalid(const char *initiator, const char *url)
|
|||||||
task->xfer_dir = SCSI_XFER_READ;
|
task->xfer_dir = SCSI_XFER_READ;
|
||||||
task->expxferlen = 0;
|
task->expxferlen = 0;
|
||||||
|
|
||||||
/* we dont want autoreconnect since some targets will drop the session
|
/* we don't want autoreconnect since some targets will drop the session
|
||||||
* on this condition.
|
* on this condition.
|
||||||
*/
|
*/
|
||||||
iscsi_set_noautoreconnect(iscsi, 1);
|
iscsi_set_noautoreconnect(iscsi, 1);
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ int T1000_cmdsn_invalid(const char *initiator, const char *url)
|
|||||||
|
|
||||||
printf("Write 2 blocks with CMDSN > MAXCMDSN ... ");
|
printf("Write 2 blocks with CMDSN > MAXCMDSN ... ");
|
||||||
change_cmdsn = 1;
|
change_cmdsn = 1;
|
||||||
/* we dont want autoreconnect since some targets will drop the
|
/* we don't want autoreconnect since some targets will drop the
|
||||||
* on this condition.
|
* on this condition.
|
||||||
*/
|
*/
|
||||||
iscsi_set_noautoreconnect(iscsi, 1);
|
iscsi_set_noautoreconnect(iscsi, 1);
|
||||||
@@ -132,7 +132,7 @@ int T1000_cmdsn_invalid(const char *initiator, const char *url)
|
|||||||
|
|
||||||
printf("Write 2 blocks with CMDSN == 0 ... ");fflush(stdout);
|
printf("Write 2 blocks with CMDSN == 0 ... ");fflush(stdout);
|
||||||
change_cmdsn = 2;
|
change_cmdsn = 2;
|
||||||
/* we dont want autoreconnect since some targets will drop the
|
/* we don't want autoreconnect since some targets will drop the
|
||||||
* on this condition.
|
* on this condition.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ int T1010_datasn_invalid(const char *initiator, const char *url)
|
|||||||
local_iscsi_queue_pdu = my_iscsi_queue_pdu;
|
local_iscsi_queue_pdu = my_iscsi_queue_pdu;
|
||||||
|
|
||||||
printf("Write 2 DATA-IN with DATASN == 0 ... ");
|
printf("Write 2 DATA-IN with DATASN == 0 ... ");
|
||||||
/* we dont want autoreconnect since some targets will drop the
|
/* we don't want autoreconnect since some targets will drop the
|
||||||
* on this condition.
|
* on this condition.
|
||||||
*/
|
*/
|
||||||
iscsi_set_noautoreconnect(iscsi, 1);
|
iscsi_set_noautoreconnect(iscsi, 1);
|
||||||
@@ -145,7 +145,7 @@ int T1010_datasn_invalid(const char *initiator, const char *url)
|
|||||||
iscsi->target_max_recv_data_segment_length = block_size;
|
iscsi->target_max_recv_data_segment_length = block_size;
|
||||||
|
|
||||||
printf("Write 2 DATA-IN with DATASN == 27 ... ");
|
printf("Write 2 DATA-IN with DATASN == 27 ... ");
|
||||||
/* we dont want autoreconnect since some targets will drop the
|
/* we don't want autoreconnect since some targets will drop the
|
||||||
* on this condition.
|
* on this condition.
|
||||||
*/
|
*/
|
||||||
iscsi_set_noautoreconnect(iscsi, 1);
|
iscsi_set_noautoreconnect(iscsi, 1);
|
||||||
@@ -182,7 +182,7 @@ int T1010_datasn_invalid(const char *initiator, const char *url)
|
|||||||
iscsi->target_max_recv_data_segment_length = block_size;
|
iscsi->target_max_recv_data_segment_length = block_size;
|
||||||
|
|
||||||
printf("Write 2 DATA-IN with DATASN == -1 ... ");
|
printf("Write 2 DATA-IN with DATASN == -1 ... ");
|
||||||
/* we dont want autoreconnect since some targets will drop the
|
/* we don't want autoreconnect since some targets will drop the
|
||||||
* on this condition.
|
* on this condition.
|
||||||
*/
|
*/
|
||||||
iscsi_set_noautoreconnect(iscsi, 1);
|
iscsi_set_noautoreconnect(iscsi, 1);
|
||||||
@@ -222,7 +222,7 @@ int T1010_datasn_invalid(const char *initiator, const char *url)
|
|||||||
iscsi->target_max_recv_data_segment_length = block_size;
|
iscsi->target_max_recv_data_segment_length = block_size;
|
||||||
|
|
||||||
printf("Write 2 DATA-IN with DATASN in reverse order (1, 0) ... ");
|
printf("Write 2 DATA-IN with DATASN in reverse order (1, 0) ... ");
|
||||||
/* we dont want autoreconnect since some targets will drop the
|
/* we don't want autoreconnect since some targets will drop the
|
||||||
* on this condition.
|
* on this condition.
|
||||||
*/
|
*/
|
||||||
iscsi_set_noautoreconnect(iscsi, 1);
|
iscsi_set_noautoreconnect(iscsi, 1);
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ int T1020_bufferoffset_invalid(const char *initiator, const char *url)
|
|||||||
local_iscsi_queue_pdu = my_iscsi_queue_pdu;
|
local_iscsi_queue_pdu = my_iscsi_queue_pdu;
|
||||||
|
|
||||||
printf("Write 2 DATA-IN with BUFFEROFFSET 1M too high ... ");
|
printf("Write 2 DATA-IN with BUFFEROFFSET 1M too high ... ");
|
||||||
/* we dont want autoreconnect since some targets will drop the
|
/* we don't want autoreconnect since some targets will drop the
|
||||||
* on this condition.
|
* on this condition.
|
||||||
*/
|
*/
|
||||||
iscsi_set_noautoreconnect(iscsi, 1);
|
iscsi_set_noautoreconnect(iscsi, 1);
|
||||||
@@ -137,7 +137,7 @@ int T1020_bufferoffset_invalid(const char *initiator, const char *url)
|
|||||||
iscsi->target_max_recv_data_segment_length = block_size;
|
iscsi->target_max_recv_data_segment_length = block_size;
|
||||||
|
|
||||||
printf("Write 2 DATA-IN with BUFFEROFFSET==-%zu ... ", block_size);
|
printf("Write 2 DATA-IN with BUFFEROFFSET==-%zu ... ", block_size);
|
||||||
/* we dont want autoreconnect since some targets will drop the
|
/* we don't want autoreconnect since some targets will drop the
|
||||||
* on this condition.
|
* on this condition.
|
||||||
*/
|
*/
|
||||||
iscsi_set_noautoreconnect(iscsi, 1);
|
iscsi_set_noautoreconnect(iscsi, 1);
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ int T1030_unsolicited_data_overflow(const char *initiator, const char *url)
|
|||||||
buf = malloc(iscsi->first_burst_length);
|
buf = malloc(iscsi->first_burst_length);
|
||||||
|
|
||||||
printf("Write too much unsolicited data ... ");
|
printf("Write too much unsolicited data ... ");
|
||||||
/* we dont want autoreconnect since some targets will drop the session
|
/* we don't want autoreconnect since some targets will drop the session
|
||||||
* on this condition.
|
* on this condition.
|
||||||
*/
|
*/
|
||||||
iscsi_set_noautoreconnect(iscsi, 1);
|
iscsi_set_noautoreconnect(iscsi, 1);
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ int T1040_saturate_maxcmdsn(const char *initiator, const char *url)
|
|||||||
|
|
||||||
ret = 0;
|
ret = 0;
|
||||||
|
|
||||||
/* we dont want autoreconnect since some targets will drop the
|
/* we don't want autoreconnect since some targets will drop the
|
||||||
* on this condition.
|
* on this condition.
|
||||||
*/
|
*/
|
||||||
iscsi_set_noautoreconnect(iscsi, 1);
|
iscsi_set_noautoreconnect(iscsi, 1);
|
||||||
|
|||||||
@@ -161,7 +161,7 @@ wait_until_test_finished(struct iscsi_context *iscsi, struct iscsi_async_state *
|
|||||||
state->finished = 1;
|
state->finished = 1;
|
||||||
state->status = SCSI_STATUS_CANCELLED;
|
state->status = SCSI_STATUS_CANCELLED;
|
||||||
state->task->status = SCSI_STATUS_CANCELLED;
|
state->task->status = SCSI_STATUS_CANCELLED;
|
||||||
/* this may leak memory since we dont free the pdu */
|
/* this may leak memory since we don't free the pdu */
|
||||||
while ((pdu = iscsi->outqueue)) {
|
while ((pdu = iscsi->outqueue)) {
|
||||||
SLIST_REMOVE(&iscsi->outqueue, pdu);
|
SLIST_REMOVE(&iscsi->outqueue, pdu);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ void test_iscsi_cmdsn_toohigh(void)
|
|||||||
iscsic->target_max_recv_data_segment_length = block_size;
|
iscsic->target_max_recv_data_segment_length = block_size;
|
||||||
local_iscsi_queue_pdu = my_iscsi_queue_pdu;
|
local_iscsi_queue_pdu = my_iscsi_queue_pdu;
|
||||||
change_cmdsn = 1;
|
change_cmdsn = 1;
|
||||||
/* we dont want autoreconnect since some targets will incorrectly
|
/* we don't want autoreconnect since some targets will incorrectly
|
||||||
* drop the connection on this condition.
|
* drop the connection on this condition.
|
||||||
*/
|
*/
|
||||||
iscsi_set_noautoreconnect(iscsic, 1);
|
iscsi_set_noautoreconnect(iscsic, 1);
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ void test_iscsi_cmdsn_toolow(void)
|
|||||||
iscsic->target_max_recv_data_segment_length = block_size;
|
iscsic->target_max_recv_data_segment_length = block_size;
|
||||||
local_iscsi_queue_pdu = my_iscsi_queue_pdu;
|
local_iscsi_queue_pdu = my_iscsi_queue_pdu;
|
||||||
change_cmdsn = 1;
|
change_cmdsn = 1;
|
||||||
/* we dont want autoreconnect since some targets will incorrectly
|
/* we don't want autoreconnect since some targets will incorrectly
|
||||||
* drop the connection on this condition.
|
* drop the connection on this condition.
|
||||||
*/
|
*/
|
||||||
iscsi_set_noautoreconnect(iscsic, 1);
|
iscsi_set_noautoreconnect(iscsic, 1);
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ test_modesense6_residuals(void)
|
|||||||
|
|
||||||
|
|
||||||
logging(LOG_VERBOSE, "Try a MODESENSE6 command with 4 bytes of "
|
logging(LOG_VERBOSE, "Try a MODESENSE6 command with 4 bytes of "
|
||||||
"transfer length and verify that we dont get residuals.");
|
"transfer length and verify that we don't get residuals.");
|
||||||
if (task != NULL) {
|
if (task != NULL) {
|
||||||
scsi_free_scsi_task(task);
|
scsi_free_scsi_task(task);
|
||||||
task = NULL;
|
task = NULL;
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ test_read10_invalid(void)
|
|||||||
task->expxferlen = 0;
|
task->expxferlen = 0;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* we dont want autoreconnect since some targets will drop the session
|
* we don't want autoreconnect since some targets will drop the session
|
||||||
* on this condition.
|
* on this condition.
|
||||||
*/
|
*/
|
||||||
iscsi_set_noautoreconnect(iscsic, 1);
|
iscsi_set_noautoreconnect(iscsic, 1);
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ test_read10_residuals(void)
|
|||||||
task->expxferlen = 0;
|
task->expxferlen = 0;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* we dont want autoreconnect since some targets will drop the session
|
* we don't want autoreconnect since some targets will drop the session
|
||||||
* on this condition.
|
* on this condition.
|
||||||
*/
|
*/
|
||||||
iscsi_set_noautoreconnect(iscsic, 1);
|
iscsi_set_noautoreconnect(iscsic, 1);
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ test_read12_residuals(void)
|
|||||||
task->expxferlen = 0;
|
task->expxferlen = 0;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* we dont want autoreconnect since some targets will drop the session
|
* we don't want autoreconnect since some targets will drop the session
|
||||||
* on this condition.
|
* on this condition.
|
||||||
*/
|
*/
|
||||||
iscsi_set_noautoreconnect(iscsic, 1);
|
iscsi_set_noautoreconnect(iscsic, 1);
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ test_read16_residuals(void)
|
|||||||
task->expxferlen = 0;
|
task->expxferlen = 0;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* we dont want autoreconnect since some targets will drop the session
|
* we don't want autoreconnect since some targets will drop the session
|
||||||
* on this condition.
|
* on this condition.
|
||||||
*/
|
*/
|
||||||
iscsi_set_noautoreconnect(iscsic, 1);
|
iscsi_set_noautoreconnect(iscsic, 1);
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ test_write10_residuals(void)
|
|||||||
task->expxferlen = 0;
|
task->expxferlen = 0;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* we dont want autoreconnect since some targets will drop the session
|
* we don't want autoreconnect since some targets will drop the session
|
||||||
* on this condition.
|
* on this condition.
|
||||||
*/
|
*/
|
||||||
iscsi_set_noautoreconnect(iscsic, 1);
|
iscsi_set_noautoreconnect(iscsic, 1);
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ test_write12_residuals(void)
|
|||||||
task->expxferlen = 0;
|
task->expxferlen = 0;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* we dont want autoreconnect since some targets will drop the session
|
* we don't want autoreconnect since some targets will drop the session
|
||||||
* on this condition.
|
* on this condition.
|
||||||
*/
|
*/
|
||||||
iscsi_set_noautoreconnect(iscsic, 1);
|
iscsi_set_noautoreconnect(iscsic, 1);
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ test_write16_residuals(void)
|
|||||||
task->expxferlen = 0;
|
task->expxferlen = 0;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* we dont want autoreconnect since some targets will drop the session
|
* we don't want autoreconnect since some targets will drop the session
|
||||||
* on this condition.
|
* on this condition.
|
||||||
*/
|
*/
|
||||||
iscsi_set_noautoreconnect(iscsic, 1);
|
iscsi_set_noautoreconnect(iscsic, 1);
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ test_writeverify10_residuals(void)
|
|||||||
task->expxferlen = 0;
|
task->expxferlen = 0;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* we dont want autoreconnect since some targets will drop the session
|
* we don't want autoreconnect since some targets will drop the session
|
||||||
* on this condition.
|
* on this condition.
|
||||||
*/
|
*/
|
||||||
iscsi_set_noautoreconnect(iscsic, 1);
|
iscsi_set_noautoreconnect(iscsic, 1);
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ test_writeverify12_residuals(void)
|
|||||||
task->expxferlen = 0;
|
task->expxferlen = 0;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* we dont want autoreconnect since some targets will drop the session
|
* we don't want autoreconnect since some targets will drop the session
|
||||||
* on this condition.
|
* on this condition.
|
||||||
*/
|
*/
|
||||||
iscsi_set_noautoreconnect(iscsic, 1);
|
iscsi_set_noautoreconnect(iscsic, 1);
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ test_writeverify16_residuals(void)
|
|||||||
task->expxferlen = 0;
|
task->expxferlen = 0;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* we dont want autoreconnect since some targets will drop the session
|
* we don't want autoreconnect since some targets will drop the session
|
||||||
* on this condition.
|
* on this condition.
|
||||||
*/
|
*/
|
||||||
iscsi_set_noautoreconnect(iscsic, 1);
|
iscsi_set_noautoreconnect(iscsic, 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user