Implement SCSI commands:

0x1b Load/Unload Sequential
0x4d Log Sense
0x5e (unknown for just now)
0x35 Synchronise cache

as no ops for the present time - reported on current-users by Chavdar
Ivanov as being generated by the Solaris 10 initiator.
This commit is contained in:
agc 2006-02-24 20:47:30 +00:00
parent 39222faf50
commit b95774e6d4
2 changed files with 33 additions and 1 deletions

View File

@ -9,11 +9,15 @@ enum {
READ_6 = 0x08,
INQUIRY = 0x12,
MODE_SENSE_6 = 0x1a,
LOAD_UNLOAD = 0x1b,
READ_CAPACITY = 0x25,
READ_10 = 0x28,
WRITE_10 = 0x2a,
VERIFY = 0x2f,
SYNC_CACHE = 0x35,
LOG_SENSE = 0x4d,
MODE_SENSE_10 = 0x5a,
UNKNOWN_5E = 0x5e,
REPORT_LUNS = 0xa0
};

30
dist/iscsi/src/disk.c vendored
View File

@ -1,4 +1,4 @@
/* $NetBSD: disk.c,v 1.4 2006/02/20 08:57:32 agc Exp $ */
/* $NetBSD: disk.c,v 1.5 2006/02/24 20:47:30 agc Exp $ */
/*
* Copyright © 2006 Alistair Crooks. All rights reserved.
@ -860,6 +860,13 @@ device_command(target_session_t * sess, target_cmd_t * cmd)
args->status = 0;
break;
case LOAD_UNLOAD:
TRACE(TRACE_SCSI_CMD, "LOAD_UNLOAD\n");
args->status = 0;
args->length = 0;
break;
case READ_CAPACITY:
TRACE(TRACE_SCSI_CMD, "READ_CAPACITY\n");
@ -987,6 +994,27 @@ device_command(target_session_t * sess, target_cmd_t * cmd)
args->status = 0;
break;
case SYNC_CACHE:
TRACE(TRACE_SCSI_CMD, "SYNC_CACHE\n");
args->status = 0;
args->length = 0;
break;
case LOG_SENSE:
TRACE(TRACE_SCSI_CMD, "LOG_SENSE\n");
args->status = 0;
args->length = 0;
break;
case UNKNOWN_5E:
TRACE(TRACE_SCSI_CMD, "UNKNOWN_5E\n");
args->status = 0;
args->length = 0;
break;
case REPORT_LUNS:
TRACE(TRACE_SCSI_CMD, "REPORT LUNS\n");
data = args->send_data;