public class FormatUnitStage extends TargetFullFeatureStage
FORMAT UNIT
SCSI commands.
The FORMAT UNIT
command requests that the device server format the medium into application client
accessible logical blocks as specified in the number of logical blocks and logical block length values received in
the last mode parameter block descriptor in a MODE SELECT
command (see SPC-4). In addition, the device
server may certify the medium and create control structures for the management of the medium and defects.
The degree that the medium is altered by this command is vendor specific.
If a device server receives a FORMAT UNIT
command before receiving a MODE SELECT command with a mode
parameter block descriptor, then the device server shall use the number of logical blocks and logical block length at
which the logical unit is currently formatted (i.e., no change is made to the number of logical blocks and the
logical block length of the logical unit during the format operation).
FORMAT UNIT
commands received by the jSCI Target will not lead to any persistent changes of the virtual
logical unit.
connection, session, settings, targetPhase
Constructor and Description |
---|
FormatUnitStage(TargetFullFeaturePhase targetFullFeaturePhase) |
Modifier and Type | Method and Description |
---|---|
void |
execute(org.jscsi.parser.ProtocolDataUnit pdu)
Starts the stage.
|
createFixedFormatErrorPdu, createFixedFormatErrorPdu, createScsiResponsePdu, sendResponse
getConnection
public FormatUnitStage(TargetFullFeaturePhase targetFullFeaturePhase)
public void execute(org.jscsi.parser.ProtocolDataUnit pdu) throws IOException, InterruptedException, org.jscsi.exception.InternetSCSIException, DigestException, SettingsException
TargetStage
execute
in class TargetStage
pdu
- the first ProtocolDataUnit
to be processed in the stageIOException
- if the connection was closed unexpectedlyInterruptedException
org.jscsi.exception.InternetSCSIException
- if a PDU has violated the iSCSI standardDigestException
- if a digest error was detectedSettingsException
- if the program has attempted to access a value from settings which has not been
negotiated and which does not have a default valueCopyright © 2013 University of Konstanz, Distributed Systems Group. All Rights Reserved.