diff --git a/test-tool/0203_read16_0blocks.c b/test-tool/0203_read16_0blocks.c index 07f3d72..4f08bf6 100644 --- a/test-tool/0203_read16_0blocks.c +++ b/test-tool/0203_read16_0blocks.c @@ -79,7 +79,7 @@ int T0203_read16_0blocks(const char *initiator, const char *url) printf("[OK]\n"); printf("Read16 0blocks at LBA: "); - task = iscsi_read16_sync(iscsi, lun, num_blocks - 1, 0, block_size, 0, 0, 0, 0, 0); + task = iscsi_read16_sync(iscsi, lun, num_blocks, 0, block_size, 0, 0, 0, 0, 0); if (task == NULL) { printf("[FAILED]\n"); printf("Failed to send read16 command: %s\n", iscsi_get_error(iscsi)); @@ -96,7 +96,7 @@ int T0203_read16_0blocks(const char *initiator, const char *url) printf("[OK]\n"); printf("Read16 0blocks at LBA: "); - task = iscsi_read16_sync(iscsi, lun, num_blocks , 0, block_size, 0, 0, 0, 0, 0); + task = iscsi_read16_sync(iscsi, lun, num_blocks + 1, 0, block_size, 0, 0, 0, 0, 0); if (task == NULL) { printf("[FAILED]\n"); printf("Failed to send read16 command: %s\n", iscsi_get_error(iscsi)); diff --git a/test-tool/0213_read12_0blocks.c b/test-tool/0213_read12_0blocks.c index 775520f..3cf443a 100644 --- a/test-tool/0213_read12_0blocks.c +++ b/test-tool/0213_read12_0blocks.c @@ -79,7 +79,7 @@ int T0213_read12_0blocks(const char *initiator, const char *url) printf("[OK]\n"); printf("Read12 0blocks at LBA: "); - task = iscsi_read12_sync(iscsi, lun, num_blocks - 1, 0, block_size, 0, 0, 0, 0, 0); + task = iscsi_read12_sync(iscsi, lun, num_blocks, 0, block_size, 0, 0, 0, 0, 0); if (task == NULL) { printf("[FAILED]\n"); printf("Failed to send read12 command: %s\n", iscsi_get_error(iscsi)); @@ -96,7 +96,7 @@ int T0213_read12_0blocks(const char *initiator, const char *url) printf("[OK]\n"); printf("Read12 0blocks at LBA: "); - task = iscsi_read12_sync(iscsi, lun, num_blocks , 0, block_size, 0, 0, 0, 0, 0); + task = iscsi_read12_sync(iscsi, lun, num_blocks + 1, 0, block_size, 0, 0, 0, 0, 0); if (task == NULL) { printf("[FAILED]\n"); printf("Failed to send read12 command: %s\n", iscsi_get_error(iscsi));