Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Fibre Channel Protocol for SCSI, Fourth Version (FCP-4). Revision 00a. October 30, 2006..pdf
Скачиваний:
56
Добавлен:
02.05.2014
Размер:
874.59 Кб
Скачать

10/30/06

INCITS T10, Project 1828-D, Revision 00a

9.2.2.7RDDATA and WRDATA bits

If the RDDATA bit is set to one, the initiator FCP_Port expects to receive FCP_DATA IUs from the target FCP_Port. This is a SCSI read operation.

If the WRDATA bit is set to one, the initiator FCP_Port expects to transmit FCP_DATA IUs to the target FCP_Port. This is a SCSI write operation.

If the RDDATA bit and WRDATA bit are both set to one, the initiator FCP_Port expects both a SCSI read operation and a SCSI write operation. This is a bidirectional SCSI command. The FCP_BIDIRECTIONAL_READ_DL field shall be included in the FCP_CMND IU payload. The initiator FCP_Port shall not set both the RDDATA bit and the WRDATA bit to one except for a bidirectional SCSI command.

If the RDDATA bit and WRDATA bit are both set to zero, there shall be no FCP_DATA IUs and the FCP_DL field shall be set to zero.

The device server shall return CHECK CONDITION status with the sense key set to ILLEGAL REQUEST and the additional sense code set to INVALID FIELD IN COMMAND INFORMATION UNIT if the following protocol errors are detected:

a)a read operation has the RDDATA bit set to zero or the WRDATA bit set to one;

b)a write operation has the WRDATA bit set to zero or the RDDATA bit set to one;

c)a bidirectional SCSI command has either the RDDATA bit set to zero or the WRDATA bit set to zero; or

d)the RDDATA bit and WRDATA bit are both set to zero and the FCP_DL value is not zero.

NOTE 5 - Device servers compliant to previous versions of this standard may terminate the command and return an FCP_RSP IU with the RSP_CODE field set to 02h (i.e., FCP_CMND fields invalid) (see table 24) for some protocol errors.

9.2.2.8FCP_CDB field

The FCP_CDB field contains the CDB to be sent to the addressed logical unit. The maximum CDB length is 16 bytes unless the ADDITIONAL FCP_CDB_LENGTH field has specified that there is an ADDITIONAL_FCP_CDB field. The FCP_CDB shall be ignored if any task management flag is set to one.

The CDB format is defined by SAM-3 and the contents of the CDB are defined in the SCSI command standards. Bytes between the end of a CDB and the end of the FCP_CDB field or, if applicable, the ADDITIONAL_FCP_CDB field shall be reserved.

9.2.2.9ADDITIONAL_FCP_CDB field

The ADDITIONAL FCP_CDB field contains any CDB bytes beyond those contained within the 16 byte FCP_CDB field. The ADDITIONAL FCP_CDB field shall not be present if any task management flag is set to one. The contents of the field shall be those bytes of an extended CDB beyond the first 16 bytes of the CDB as defined in the SCSI command standards.

9.2.2.10 FCP_DL field

For a SCSI read operation, the FCP_DL field contains a count of the maximum number of all bytes to be transferred to the application client buffer in FCP_DATA IU payloads by the SCSI command. The FCP_DL field is the Data-In Buffer Size defined by SAM-3.

For a SCSI write operation, the FCP_DL field contains a count of the maximum number of all bytes to be transferred from the application client buffer in FCP_DATA IU payloads by the SCSI command. The FCP_DL field is the Data-Out Buffer Size defined by SAM-3

For a bidirectional SCSI command, the FCP_DL field contains a count of the maximum number of all bytes to be transferred from the application client buffer in FCP_DATA IU payloads by the SCSI command. The FCP_DL field is the Data-Out Buffer Size defined by SAM-3.

Working Draft, FCP-4

42