Fix some cut and paste typos
This commit is contained in:
@@ -111,7 +111,7 @@ int T0223_write16_0blocks(const char *initiator, const char *url)
|
|||||||
}
|
}
|
||||||
if (task->status == SCSI_STATUS_GOOD) {
|
if (task->status == SCSI_STATUS_GOOD) {
|
||||||
printf("[FAILED]\n");
|
printf("[FAILED]\n");
|
||||||
printf("Write16 command: Should fail when reading 0blocks beyond end\n");
|
printf("Write16 command: Should fail when writing 0blocks beyond end\n");
|
||||||
ret = -1;
|
ret = -1;
|
||||||
scsi_free_scsi_task(task);
|
scsi_free_scsi_task(task);
|
||||||
goto finished;
|
goto finished;
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ int T0224_write16_beyondeol(const char *initiator, const char *url)
|
|||||||
ret = 0;
|
ret = 0;
|
||||||
|
|
||||||
/* read 1 - 256 blocks beyond the end of the device */
|
/* read 1 - 256 blocks beyond the end of the device */
|
||||||
printf("Reading 1-256 blocks beyond end-of-device ... ");
|
printf("Writing 1-256 blocks beyond end-of-device ... ");
|
||||||
for (i = 2; i <= 257; i++) {
|
for (i = 2; i <= 257; i++) {
|
||||||
task = iscsi_write16_sync(iscsi, lun, num_blocks, data, i * block_size, block_size, 0, 0, 0, 0, 0);
|
task = iscsi_write16_sync(iscsi, lun, num_blocks, data, i * block_size, block_size, 0, 0, 0, 0, 0);
|
||||||
if (task == NULL) {
|
if (task == NULL) {
|
||||||
@@ -81,7 +81,7 @@ int T0224_write16_beyondeol(const char *initiator, const char *url)
|
|||||||
}
|
}
|
||||||
if (task->status == SCSI_STATUS_GOOD) {
|
if (task->status == SCSI_STATUS_GOOD) {
|
||||||
printf("[FAILED]\n");
|
printf("[FAILED]\n");
|
||||||
printf("Write16 command should fail when reading beyond end of device\n");
|
printf("Write16 command should fail when writing beyond end of device\n");
|
||||||
ret = -1;
|
ret = -1;
|
||||||
scsi_free_scsi_task(task);
|
scsi_free_scsi_task(task);
|
||||||
goto finished;
|
goto finished;
|
||||||
|
|||||||
@@ -111,7 +111,7 @@ int T0233_write12_0blocks(const char *initiator, const char *url)
|
|||||||
}
|
}
|
||||||
if (task->status == SCSI_STATUS_GOOD) {
|
if (task->status == SCSI_STATUS_GOOD) {
|
||||||
printf("[FAILED]\n");
|
printf("[FAILED]\n");
|
||||||
printf("Write12 command: Should fail when reading 0blocks beyond end\n");
|
printf("Write12 command: Should fail when writing 0blocks beyond end\n");
|
||||||
ret = -1;
|
ret = -1;
|
||||||
scsi_free_scsi_task(task);
|
scsi_free_scsi_task(task);
|
||||||
goto finished;
|
goto finished;
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ int T0234_write12_beyondeol(const char *initiator, const char *url)
|
|||||||
ret = 0;
|
ret = 0;
|
||||||
|
|
||||||
/* read 1 - 256 blocks beyond the end of the device */
|
/* read 1 - 256 blocks beyond the end of the device */
|
||||||
printf("Reading 1-256 blocks beyond end-of-device ... ");
|
printf("Writing 1-256 blocks beyond end-of-device ... ");
|
||||||
for (i = 2; i <= 257; i++) {
|
for (i = 2; i <= 257; i++) {
|
||||||
task = iscsi_write12_sync(iscsi, lun, num_blocks, data, i * block_size, block_size, 0, 0, 0, 0, 0);
|
task = iscsi_write12_sync(iscsi, lun, num_blocks, data, i * block_size, block_size, 0, 0, 0, 0, 0);
|
||||||
if (task == NULL) {
|
if (task == NULL) {
|
||||||
@@ -81,7 +81,7 @@ int T0234_write12_beyondeol(const char *initiator, const char *url)
|
|||||||
}
|
}
|
||||||
if (task->status == SCSI_STATUS_GOOD) {
|
if (task->status == SCSI_STATUS_GOOD) {
|
||||||
printf("[FAILED]\n");
|
printf("[FAILED]\n");
|
||||||
printf("Write12 command should fail when reading beyond end of device\n");
|
printf("Write12 command should fail when writing beyond end of device\n");
|
||||||
ret = -1;
|
ret = -1;
|
||||||
scsi_free_scsi_task(task);
|
scsi_free_scsi_task(task);
|
||||||
goto finished;
|
goto finished;
|
||||||
|
|||||||
Reference in New Issue
Block a user