Merge pull request #290 from ddiss/fix_mpio_clear_pr

test-tool: fix MPIO clear_pr() behaviour
This commit is contained in:
Ronnie Sahlberg
2019-05-09 07:37:22 +10:00
committed by GitHub

View File

@@ -1245,12 +1245,13 @@ main(int argc, char *argv[])
"Failed to connect to SCSI device %d\n", i);
goto err_sds_free;
}
if (clear_pr(mp_sds[i]) < 0) {
printf("One or more persistent reservations keys have been registered\n");
return -1;
}
}
if (clear_pr(sd) < 0) {
printf("One or more persistent reservations keys have been registered\n");
goto err_sds_free;
}
if (mp_num_sds > 1) {
/* check that all multipath sds identify as the same LU */
res = mpath_check_matching_ids(mp_num_sds, mp_sds);