TESTS: keep the unmarshalled std inq structure around
This commit is contained in:
@@ -53,7 +53,7 @@ int T0380_preventallow_simple(const char *initiator, const char *url)
|
||||
ret = 0;
|
||||
|
||||
|
||||
if (removable) {
|
||||
if (inq->rmb) {
|
||||
printf("Media is removable. PREVENTALLOW should work\n");
|
||||
} else {
|
||||
printf("Media is not removable. PREVENTALLOW should fail\n");
|
||||
@@ -70,7 +70,7 @@ int T0380_preventallow_simple(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));
|
||||
@@ -94,7 +94,7 @@ int T0380_preventallow_simple(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));
|
||||
|
||||
Reference in New Issue
Block a user