Write12

Class to send a Write(12) command to a scsi device. NOTE: SBC3r36 has this note: Migration from the WRITE (12) command to the WRITE (16) command is recommended for all implementations.

Constructors

this
this(SCSIDeviceBS dev, ubyte[] dataout, uint lba, uint transfer_length, ubyte group_num, ubyte wrprotect, ubyte dpo, ubyte fua)

Members

Functions

unmarshall
void unmarshall()

Method used to unmarshall the datain buffer.

Inherited Members

From SCSICommand

m_dataout
ubyte[] m_dataout;
Undocumented in source.
m_cdb
ubyte[] m_cdb;
Undocumented in source.
sense
ubyte[] sense [@property getter]

Get a reference to the sense buffer

dataout
ubyte[] dataout [@property getter]

Get a reference to the dataout buffer (possibly null)

datain
ubyte[] datain [@property getter]

Get a reference to the datain buffer (possibly null)

cdb
ubyte[] cdb [@property getter]

Get a reference ot the CDB

device
SCSIDevice device [@property getter]

Get the SCSIDevice

~this
~this()
Undocumented in source.
init_cdb
void init_cdb(ubyte opcode)

Allocate the CDB and set the opcode field. Opcode is used to determine cdb length.

execute
void execute()

Execute the SCSI command on the device (using device.sgio_execute), then unmarshalls the datain buffer with a call to unmarshall().

unmarshall
void unmarshall()

Abstract method used to unmarshall the datain buffer.

Meta