TESTS: keep the unmarshalled std inq structure around

This commit is contained in:
Ronnie Sahlberg
2013-05-11 17:07:59 -07:00
parent 772d220217
commit 5135836ee5
40 changed files with 186 additions and 222 deletions

View File

@@ -51,7 +51,7 @@ int T0381_preventallow_eject(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;
@@ -72,7 +72,7 @@ int T0381_preventallow_eject(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));
@@ -132,7 +132,7 @@ int T0381_preventallow_eject(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));