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(ProtocolDataUnit pdu)
Starts the stage.
|
createFixedFormatErrorPdu, createFixedFormatErrorPdu, createScsiResponsePdu, sendResponsegetConnectionpublic FormatUnitStage(TargetFullFeaturePhase targetFullFeaturePhase)
public void execute(ProtocolDataUnit pdu) throws IOException, InterruptedException, InternetSCSIException, DigestException, SettingsException
TargetStageexecute in class TargetStagepdu - the first ProtocolDataUnit to be processed in the
stageIOException - if the connection was closed unexpectedlyInterruptedExceptionInternetSCSIException - 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 © 2012 University of Konstanz, Distributed Systems Group. All Rights Reserved.