public abstract class ReadCapacityCdb extends CommandDescriptorBlock
Modifier and Type | Field and Description |
---|---|
protected long |
logicalBlockAddress
The LOGICAL BLOCK ADDRESS field specifies the LBA of the first logical block accessed by this command.
|
protected boolean |
partialMediumIndicator
A partial medium indicator (PMI) bit set to zero specifies that the device server return information on the last
logical block on the direct-access block device.
|
Constructor and Description |
---|
ReadCapacityCdb(ByteBuffer buffer) |
Modifier and Type | Method and Description |
---|---|
protected abstract long |
deserializeLogicalBlockAddress(ByteBuffer buffer) |
protected abstract boolean |
deserializePartialMediumIndicator(ByteBuffer buffer) |
long |
getLogicalBlockAddress() |
boolean |
getPartialMediumIndicator() |
addIllegalFieldPointer, addIllegalFieldPointer, getIllegalFieldPointers, getScsiOperationCode, isNormalACA
protected final long logicalBlockAddress
If the specified LBA exceeds the capacity of the medium, then the device server shall terminate the command with CHECK CONDITION status with the sense key set to ILLEGAL REQUEST and the additional sense code set to LOGICAL BLOCK ADDRESS OUT OF RANGE.
partialMediumIndicator
protected final boolean partialMediumIndicator
A PMI bit set to one specifies that the device server return information on the last logical block after that specified in the LOGICAL BLOCK ADDRESS field before a substantial vendor specific delay in data transfer may be encountered.
The LOGICAL BLOCK ADDRESS field shall be set to zero if the PMI bit is set to zero. If the PMI bit is set to zero and the LOGICAL BLOCK ADDRESS field is not set to zero, then the device server shall terminate the command with CHECK CONDITION status with the sense key set to ILLEGAL REQUEST and the additional sense code set to INVALID FIELD IN CDB.
logicalBlockAddress
public ReadCapacityCdb(ByteBuffer buffer)
protected abstract long deserializeLogicalBlockAddress(ByteBuffer buffer)
protected abstract boolean deserializePartialMediumIndicator(ByteBuffer buffer)
public final long getLogicalBlockAddress()
public final boolean getPartialMediumIndicator()
Copyright © 2013 University of Konstanz, Distributed Systems Group. All Rights Reserved.