public abstract class ModeParameterHeader extends Object implements ISerializable
ModeParameterHeader
are part of ModeParameterList
objects and specify the layout and length
of the following non-header fields.Modifier and Type | Field and Description |
---|---|
protected int |
blockDescriptorLength
The BLOCK DESCRIPTOR LENGTH field contains the length in bytes of all the block descriptors.
|
protected byte |
deviceSpecificParameter
The DEVICE-SPECIFIC PARAMETER field is unique for each device type.
|
protected byte |
mediumType
The contents of the MEDIUM TYPE field are unique for each device type.
|
protected int |
modeDataLength
When using the MODE SENSE command, the MODE DATA LENGTH field indicates the length in bytes of the following data
that is available to be transferred.
|
Constructor and Description |
---|
ModeParameterHeader(int modeDataLength,
int blockDescriptorLength)
The abstract constructor.
|
protected final int modeDataLength
When using the MODE SELECT command, this field is reserved.
Logical units that support more than 256 bytes of block descriptors and mode pages may need to implement ten-byte mode commands. The mode data length field in the six-byte CDB header limits the returned data to 256 bytes.
protected final byte mediumType
protected final byte deviceSpecificParameter
+---+---+---+---+---+---+---+---+---+
|bit| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
+---+---+---+---+---+---+---+---+---+
|___|WP_|RESERV-|DPO|___RESERVED____|
|___|___|__ED___|FUA|_______________|
+---+---+---+---+---+---+---+---+---+
When used with the MODE SELECT command, the write protect (WP) bit is not defined. When used with the MODE SENSE command, a WP bit set to one indicates that the medium is write-protected. A WP bit set to zero indicates that the medium is not write-protected. When the software write protect (SWP) bit in the Control mode page (see SPC-4) is set to one, the WP bit shall be set to one.
When the SWP bit in the Control mode page is set to zero, the WP bit shall be set to one if the medium is write-protected (e.g., due to mechanisms outside the scope of this standard) or zero if the medium is not write-protected.
When used with the MODE SELECT command, the DPOFUA bit is reserved. When used with the MODE SENSE command, a DPOFUA bit set to zero indicates that the device server does not support the DPO and FUA bits. When used with the MODE SENSE command, a DPOFUA bit set to one indicates that the device server supports the DPO and FUA bits.
So, the simulated logical unit of the jSCSI Target must always use a value of 0x00.
protected final int blockDescriptorLength
Copyright © 2013 University of Konstanz, Distributed Systems Group. All Rights Reserved.