Clear persistent reservations before sending the first SCSI command to the target to avoid that that command fails due to persistent reservations left behind by a previous run of the test tool. Avoid that a subsequent test fails if a test did not remove the persistent reservations it obtained. Make sure that clear_pr() returns -1 if clearing persistent reservations fails. Signed-off-by: Bart Van Assche <bvanassche@acm.org>
58 KiB
58 KiB