From 86df6c9a20739be7c6bae8c56d86283e5e17e3ef Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Mon, 1 Jun 2015 19:30:19 -0700 Subject: [PATCH] MULTIPATH TESTS: We need to pass the correct evpv/pagecode when we reissue an inquiry When we reissue an inquiry due to the firast attempt not containing all of the data, make sure to ask for the same page once we know the proper size and ask again. Signed-off-by: Ronnie Sahlberg --- test-tool/iscsi-multipath.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test-tool/iscsi-multipath.c b/test-tool/iscsi-multipath.c index 7375bde..37ccc27 100644 --- a/test-tool/iscsi-multipath.c +++ b/test-tool/iscsi-multipath.c @@ -144,7 +144,8 @@ mpath_check_matching_ids_devid_vpd(int num_sds, * an identical logical unit identifier. */ inquiry(sds[i], &inq_task, 1, - SCSI_INQUIRY_PAGECODE_DEVICE_IDENTIFICATION, 64, + SCSI_INQUIRY_PAGECODE_DEVICE_IDENTIFICATION, + 64, EXPECT_STATUS_GOOD); if (inq_task && inq_task->status != SCSI_STATUS_GOOD) { printf("Inquiry command failed : %s\n", @@ -156,7 +157,9 @@ mpath_check_matching_ids_devid_vpd(int num_sds, /* we need more data */ scsi_free_scsi_task(inq_task); inq_task = NULL; - inquiry(sds[i], &inq_task, 0, 0, full_size, + inquiry(sds[i], &inq_task, 1, + SCSI_INQUIRY_PAGECODE_DEVICE_IDENTIFICATION, + full_size, EXPECT_STATUS_GOOD); if (inq_task == NULL) { printf("Inquiry command failed : %s\n",