Return-Path: <owner-ips@ece.cmu.edu>
X-Sieve: cmu-sieve 2.0
Return-Path: <owner-ips@ece.cmu.edu>
Received: (from majordom@localhost)
	by ece.cmu.edu (8.11.0/8.10.2) id h1H93Ug20278
	for ips-outgoing; Mon, 17 Feb 2003 04:03:31 -0500 (EST)
X-Authentication-Warning: ece.cmu.edu: majordom set sender to owner-ips@ece.cmu.edu using -f
Received: from fep1.012.net.il (fep1.goldenlines.net.il [212.117.129.200])
	by ece.cmu.edu (8.11.0/8.10.2) with ESMTP id h1H93RW20274
	for <ips@ece.cmu.edu>; Mon, 17 Feb 2003 04:03:28 -0500 (EST)
Received: from JA31 ([192.115.216.85]) by fep1.012.net.il with ESMTP
          id <20030217090402.VHZZ21210.fep1@JA31>;
          Mon, 17 Feb 2003 11:04:02 +0200
From: "Julian Satran" <satran@haifasphere.co.il>
To: "'Santosh Rao'" <santoshr@cup.hp.com>,
   "'Eddy Quicksall'" <eddyq@ivivity.com>
Cc: "'\"Ips@Ece.Cmu.Edu\"'" <ips@ece.cmu.edu>
Subject: RE: iSCSI: underrun with a check condition
Date: Mon, 17 Feb 2003 11:03:17 +0200
Message-ID: <002001c2d663$691dc420$52129409@JA31>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.4510
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
In-Reply-To: <200302162127.NAA08657@hpcuhe.cup.hp.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by ece.cmu.edu id h1H93SW20275
Sender: owner-ips@ece.cmu.edu
Precedence: bulk

Santosh,

For any check condition in which the target did process the command this
is the expected behavior.
The example Eddy gave involves a target that due to ACA or BUSY does not
initiate processing the command.
In this case the target provider does not HAVE TO set the U/O bits (and
the associated values).
The relevant piece of information appears in SAM2 5.3.2 that indicates
that status precedence.
Obviously a target MAY set the U/O bits although  I doubt that an
initiator will look them up.

Regards,
Julo


-----Original Message-----
From: owner-ips@ece.cmu.edu [mailto:owner-ips@ece.cmu.edu] On Behalf Of
Santosh Rao
Sent: 16 February, 2003 23:28
To: Eddy Quicksall
Cc: "Ips@Ece.Cmu.Edu (ips@ece.cmu.edu)"
Subject: Re: iSCSI: underrun with a check condition


Eddy,

Yes, anytime the amount of data transferred does not match the data
transfer length specified, the target must set the U bit or O bit,
depending on whether an underflow or overflow occurred.

A recovered error check condition may be returned as the response to a
scsi command which was processed to completion. The recovered error
indicates that a previous command completed successfully with some
recovery action by the device server and the sense data provides
additional details on that previous command.

The current command on which a recovered error check condition was
returned may have been processed to completion, or experienced some
underflow or overflow. This information must be conveyed by the target
in the iscsi scsi response pdu using the appropriate fields to describe
the underflow or overflow.

Thanks,
Santosh


> Should the target set the U bit when it gives a check condition to a 
> data-in command?
>  
>  
> Eddy

