From 0abacf8fa45e833c396a556c5b74fc61e6b53364 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Tue, 4 Sep 2012 18:34:11 +0200 Subject: [PATCH] test-tool: 0214 was reading twice from -1 It should read once from -1, once from 2^31. Signed-off-by: Paolo Bonzini --- test-tool/0214_read12_beyondeol.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test-tool/0214_read12_beyondeol.c b/test-tool/0214_read12_beyondeol.c index 0b0cb299..0e007409 100644 --- a/test-tool/0214_read12_beyondeol.c +++ b/test-tool/0214_read12_beyondeol.c @@ -106,14 +106,14 @@ int T0214_read12_beyondeol(const char *initiator, const char *url, int data_loss test2: - /* read 1 - 256 blocks at LBA -1 */ - printf("Reading 1-256 blocks at LBA -1 ... "); + /* read 1 - 256 blocks at LBA 2^31 */ + printf("Reading 1-256 blocks at LBA 2^31 ... "); if (num_blocks >= 0xffffffff) { printf("LUN is too big, skipping test\n"); goto test3; } for (i = 2; i <= 257; i++) { - task = iscsi_read12_sync(iscsi, lun, -1, i * block_size, block_size, 0, 0, 0, 0, 0); + task = iscsi_read12_sync(iscsi, lun, 0x80000000U, i * block_size, 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)); @@ -122,7 +122,7 @@ int T0214_read12_beyondeol(const char *initiator, const char *url, int data_loss } if (task->status == SCSI_STATUS_GOOD) { printf("[FAILED]\n"); - printf("READ12 command should fail when reading from LBA -1\n"); + printf("READ12 command should fail when reading from LBA 2^31\n"); ret++; scsi_free_scsi_task(task); goto test3;