Add RESERVE6/RELEASE6 Support.
This commit is contained in:
@@ -732,6 +732,15 @@ iscsi_readtoc_task(struct iscsi_context *iscsi, int lun, int msf, int format,
|
||||
int track_session, int maxsize,
|
||||
iscsi_command_cb cb, void *private_data);
|
||||
|
||||
EXTERN struct scsi_task *
|
||||
iscsi_reserve6_task(struct iscsi_context *iscsi, int lun,
|
||||
iscsi_command_cb cb, void *private_data);
|
||||
|
||||
EXTERN struct scsi_task *
|
||||
iscsi_release6_task(struct iscsi_context *iscsi, int lun,
|
||||
iscsi_command_cb cb, void *private_data);
|
||||
|
||||
|
||||
/*
|
||||
* Sync commands for SCSI
|
||||
*/
|
||||
@@ -889,6 +898,13 @@ EXTERN struct scsi_task *
|
||||
iscsi_readtoc_sync(struct iscsi_context *iscsi, int lun, int msf,
|
||||
int format, int track_session, int maxsize);
|
||||
|
||||
EXTERN struct scsi_task *
|
||||
iscsi_reserve6_sync(struct iscsi_context *iscsi, int lun);
|
||||
|
||||
EXTERN struct scsi_task *
|
||||
iscsi_release6_sync(struct iscsi_context *iscsi, int lun);
|
||||
|
||||
|
||||
/*
|
||||
* This function is used when the application wants to specify its own buffers to read the data
|
||||
* from the DATA-IN PDUs into.
|
||||
|
||||
@@ -27,6 +27,8 @@ enum scsi_opcode {
|
||||
SCSI_OPCODE_TESTUNITREADY = 0x00,
|
||||
SCSI_OPCODE_READ6 = 0x08,
|
||||
SCSI_OPCODE_INQUIRY = 0x12,
|
||||
SCSI_OPCODE_RESERVE6 = 0x16,
|
||||
SCSI_OPCODE_RELEASE6 = 0x17,
|
||||
SCSI_OPCODE_MODESENSE6 = 0x1a,
|
||||
SCSI_OPCODE_STARTSTOPUNIT = 0x1b,
|
||||
SCSI_OPCODE_PREVENTALLOW = 0x1e,
|
||||
@@ -39,7 +41,7 @@ enum scsi_opcode {
|
||||
SCSI_OPCODE_SYNCHRONIZECACHE10 = 0x35,
|
||||
SCSI_OPCODE_WRITE_SAME10 = 0x41,
|
||||
SCSI_OPCODE_UNMAP = 0x42,
|
||||
SCSI_OPCODE_READTOC = 0x43,
|
||||
SCSI_OPCODE_READTOC = 0x43,
|
||||
SCSI_OPCODE_READ16 = 0x88,
|
||||
SCSI_OPCODE_COMPARE_AND_WRITE = 0x89,
|
||||
SCSI_OPCODE_WRITE16 = 0x8A,
|
||||
@@ -362,6 +364,15 @@ struct scsi_reportluns_list {
|
||||
|
||||
EXTERN struct scsi_task *scsi_reportluns_cdb(int report_type, int alloc_len);
|
||||
|
||||
/*
|
||||
* RESERVE6
|
||||
*/
|
||||
EXTERN struct scsi_task *scsi_cdb_reserve6(void);
|
||||
/*
|
||||
* RELEASE6
|
||||
*/
|
||||
EXTERN struct scsi_task *scsi_cdb_release6(void);
|
||||
|
||||
/*
|
||||
* READCAPACITY10
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user