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 <ronniesahlberg@gmail.com>
This commit is contained in:
Ronnie Sahlberg
2015-06-01 19:30:19 -07:00
parent 73102aeddd
commit 86df6c9a20

View File

@@ -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",