Re: iscsi: More immediate data than required data

Joel Buckley <[email protected]> Fri, 26 Jan 2007 09:16:48 -0700
Newsgroups gmane.ietf.ips
Message-ID <[email protected]>
Barada,

The response depends on where 1024 vs. 2048 bytes are encoded...

If SCSI WRITE(10) TransferLength is set to 2 (512 Blocks) and
iSCSI SCSI Command PDU DataSegmentLength is set to 2048,
then all 2048 bytes SHALL be read by iSCSI Target and only the
first 1024 bytes SHALL be utilized by SCSI Target.

If SCSI WRITE(10) TransferLength is set to 2 (512 Blocks) and
iSCSI SCSI Command PDU DataSegmentLength is set to 1024,
then all 1024 bytes SHALL be read by iSCSI Target and all1024
bytes SHALL be utilized by SCSI Target.

In either case, the iSCSI Target SHALL expect the next iSCSI
PDU to begin immediately after the last...  So if an additional 1024
bytes of unknown data are appended to a PDU, then results are
indeterminate.  The unknown data may be evaluated as another
iSCSI PDU or may be seen as a data corruption on the connection.
If the data is seen as a data corruption, then iSCSI ERROR
RECOVERY LEVEL protocols SHALL be followed.

Cheers,
Joel.

[email protected]
JIST Development Lead
303-272-5556, x75556
"Luck is a Planned Event."

----- Original Message -----
From: Barada Mishra <[email protected]>
Date: Thursday, January 25, 2007 2:10 pm
Subject: [Ips] iscsi: More immediate data than required data
To: [email protected]

> Hi,
> 
> This question is from a iSCSI target point of view.
> 
> When a target receives more immediate data than the required data, 
> whatshould be the behavior?
> 
> Example :
> Assume the target receives a write command for 2 blocks (1024 bytes).
> But the associated immediate data it receives is 2048.
> 
> What should the target do
>  1. Use only 1024 bytes, ignore the rest of data and return good 
> status  2. Return check condition (what should be the ASC/ASCQ)?
>  3. Drop the connection and/or session
>  4. Reject the PDU
> Or something else?
> 
> Thanks
> Barada
>

_______________________________________________
Ips mailing list
[email protected]
https://www1.ietf.org/mailman/listinfo/ips
Joel.Buckley.vcf (text/x-vcard, 331 B)
begin:vcard
n:Buckley;Joel
fn:Joel W. Buckley
tel;fax:303-272-4194
tel;home:720-226-9370
tel;work:303-272-5556
url:sse.sfbay/interop/jist
org:Storage Group;System Test
adr:;;500 Eldorado Blvd., BRM05, Room3196;Broomfield;Colorado;80021-3400;USA
version:2.1
email;internet:[email protected]
title:JIST Development Lead
end:vcard