TESTS: keep the unmarshalled std inq structure around
This commit is contained in:
@@ -71,7 +71,7 @@ int T0384_preventallow_target_cold_reset(const char *initiator, const char *url)
|
||||
goto finished;
|
||||
}
|
||||
|
||||
if (!removable) {
|
||||
if (!inq->rmb) {
|
||||
printf("Media is not removable. Skipping tests\n");
|
||||
ret = -2;
|
||||
goto finished;
|
||||
@@ -92,7 +92,7 @@ int T0384_preventallow_target_cold_reset(const char *initiator, const char *url)
|
||||
/* SPC doesnt really say anything about what should happen if using PREVENTALLOW
|
||||
* on a device that does not support medium removals.
|
||||
*/
|
||||
if (removable) {
|
||||
if (inq->rmb) {
|
||||
if (task->status != SCSI_STATUS_GOOD) {
|
||||
printf("[FAILED]\n");
|
||||
printf("PREVENTALLOW command: failed with sense %s\n", iscsi_get_error(iscsi));
|
||||
@@ -201,7 +201,7 @@ again:
|
||||
/* SPC doesnt really say anything about what should happen if using PREVENTALLOW
|
||||
* on a device that does not support medium removals.
|
||||
*/
|
||||
if (removable) {
|
||||
if (inq->rmb) {
|
||||
if (task->status != SCSI_STATUS_GOOD) {
|
||||
printf("[FAILED]\n");
|
||||
printf("PREVENTALLOW command: failed with sense %s\n", iscsi_get_error(iscsi));
|
||||
|
||||
Reference in New Issue
Block a user