Merge pull request #290 from ddiss/fix_mpio_clear_pr
test-tool: fix MPIO clear_pr() behaviour
This commit is contained in:
@@ -1245,12 +1245,13 @@ main(int argc, char *argv[])
|
|||||||
"Failed to connect to SCSI device %d\n", i);
|
"Failed to connect to SCSI device %d\n", i);
|
||||||
goto err_sds_free;
|
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) {
|
if (mp_num_sds > 1) {
|
||||||
/* check that all multipath sds identify as the same LU */
|
/* check that all multipath sds identify as the same LU */
|
||||||
res = mpath_check_matching_ids(mp_num_sds, mp_sds);
|
res = mpath_check_matching_ids(mp_num_sds, mp_sds);
|
||||||
|
|||||||
Reference in New Issue
Block a user