
From folkert@vanheusden.com  Wed Feb  2 06:10:30 2011
Return-Path: <folkert@vanheusden.com>
X-Original-To: ips@core3.amsl.com
Delivered-To: ips@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 0C3BB3A6BBF for <ips@core3.amsl.com>; Wed,  2 Feb 2011 06:10:30 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level: 
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, J_CHICKENPOX_31=0.6]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hY6VWA5wAvqM for <ips@core3.amsl.com>; Wed,  2 Feb 2011 06:10:28 -0800 (PST)
Received: from keetweej.vanheusden.com (tunnel947.ipv6.xs4all.nl [IPv6:2001:888:10:3b3::2]) by core3.amsl.com (Postfix) with ESMTP id 5B5E43A6CD2 for <ips@ietf.org>; Wed,  2 Feb 2011 06:10:26 -0800 (PST)
Received: from belle.intranet.vanheusden.com (belle.intranet.vanheusden.com [192.168.64.100]) by keetweej.vanheusden.com (Postfix) with ESMTP id 02DD7162E03 for <ips@ietf.org>; Wed,  2 Feb 2011 15:13:41 +0100 (CET)
Received: by belle.intranet.vanheusden.com (Postfix, from userid 1000) id D2AC993364; Wed,  2 Feb 2011 15:13:40 +0100 (CET)
Date: Wed, 2 Feb 2011 15:13:40 +0100
From: folkert <folkert@vanheusden.com>
To: ips@ietf.org
Message-ID: <20110202141339.GV19602@belle.intranet.vanheusden.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Organization: www.unixexpert.nl
X-Chameleon-Return-To: folkert@vanheusden.com
X-Xfmail-Return-To: folkert@vanheusden.com
X-Phonenumber: +31-6-41278122
X-URL: http://www.vanheusden.com/
X-PGP-KeyID: 1F28D8AE
X-GPG-fingerprint: AC89 09CE 41F2 00B4 FCF2  B174 3019 0E8C 1F28 D8AE
X-Key: http://pgp.surfnet.nl:11371/pks/lookup?op=get&search=0x1F28D8AE
Read-Receipt-To: <folkert@vanheusden.com>
Reply-By: Sat Jan 15 11:07:06 CET 2011
X-Message-Flag: www.unixexpert.nl
User-Agent: Mutt/1.5.18 (2008-05-17)
Subject: [Ips] SCSI inquire command & iscsi wrapping
X-BeenThere: ips@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: IP Storage <ips.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/ips>, <mailto:ips-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/ips>
List-Post: <mailto:ips@ietf.org>
List-Help: <mailto:ips-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ips>, <mailto:ips-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 02 Feb 2011 14:10:30 -0000

Hi,

I'm struggling to get scsi 0x12 command working in my iSCSI target
(which will be an opensource java iSCSI target by the way).

I follow the procedure as described at
http://en.wikipedia.org/wiki/SCSI_Inquiry_Command

If I understand it correctly this is what happens:
Now, I receive an PDU with opcode 0x01 (SCSI command). In it, there's
the CDB with byte 3 and 4 telling how much extra data (apart from the
regular 16 CDB in the PDU) may be send by the target.
So as a target, let's say cdb byte 3+4 tell me i can send 'x' bytes.
So in the CDB space in the PDU I put a CDB with opcode 12 and byte 3+4
telling how many bytes I want to send.
Then, of the next 36 bytes I would want to send (I don't have any vendor
specific data), I can add 'x' bytes after the PDU with byte 4 set to
MIN(x, 36) - 4.

My question now is: am I right?


Folkert van Heusden

-- 
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com

From folkert@vanheusden.com  Wed Feb  9 09:18:28 2011
Return-Path: <folkert@vanheusden.com>
X-Original-To: ips@core3.amsl.com
Delivered-To: ips@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 68A903A67C2 for <ips@core3.amsl.com>; Wed,  9 Feb 2011 09:18:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IpsLEF+Scq5K for <ips@core3.amsl.com>; Wed,  9 Feb 2011 09:18:27 -0800 (PST)
Received: from keetweej.vanheusden.com (tunnel947.ipv6.xs4all.nl [IPv6:2001:888:10:3b3::2]) by core3.amsl.com (Postfix) with ESMTP id 3A6523A67A5 for <ips@ietf.org>; Wed,  9 Feb 2011 09:18:25 -0800 (PST)
Received: from belle.intranet.vanheusden.com (belle.intranet.vanheusden.com [192.168.64.100]) by keetweej.vanheusden.com (Postfix) with ESMTP id 81FAE162E0A for <ips@ietf.org>; Wed,  9 Feb 2011 18:18:28 +0100 (CET)
Received: by belle.intranet.vanheusden.com (Postfix, from userid 1000) id 5BD7793367; Wed,  9 Feb 2011 18:18:28 +0100 (CET)
Date: Wed, 9 Feb 2011 18:18:28 +0100
From: folkert <folkert@vanheusden.com>
To: ips@ietf.org
Message-ID: <20110209171827.GU19602@belle.intranet.vanheusden.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Organization: www.unixexpert.nl
X-Chameleon-Return-To: folkert@vanheusden.com
X-Xfmail-Return-To: folkert@vanheusden.com
X-Phonenumber: +31-6-41278122
X-URL: http://www.vanheusden.com/
X-PGP-KeyID: 1F28D8AE
X-GPG-fingerprint: AC89 09CE 41F2 00B4 FCF2  B174 3019 0E8C 1F28 D8AE
X-Key: http://pgp.surfnet.nl:11371/pks/lookup?op=get&search=0x1F28D8AE
Read-Receipt-To: <folkert@vanheusden.com>
Reply-By: Sat Jan 15 11:07:06 CET 2011
X-Message-Flag: PGP key-id: 0x1f28d8ae - consider encrypting your e-mail to me with PGP!
User-Agent: Mutt/1.5.18 (2008-05-17)
Subject: [Ips] iSCSI WRITE (10)
X-BeenThere: ips@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: IP Storage <ips.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/ips>, <mailto:ips-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/ips>
List-Post: <mailto:ips@ietf.org>
List-Help: <mailto:ips-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ips>, <mailto:ips-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 09 Feb 2011 17:18:28 -0000

Hi,

Ok I'm a lot further: the whole discovery handshake (including mode
sense, inquiries and what not) works find. Small reads/writes work too
(the ones with data in the pdu message).

Something which is not entirely clear from the RFC is the following:
- an initiator sends a 0x05 PDU (data-out) with data to be stored on
  disk.
  after processing, the target should send back a 0x21 PDU (scsi
  response). is that correct?



Folkert van Heusden

-- 
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com

From folkert@vanheusden.com  Wed Feb  9 09:37:56 2011
Return-Path: <folkert@vanheusden.com>
X-Original-To: ips@core3.amsl.com
Delivered-To: ips@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 2DC553A69D5 for <ips@core3.amsl.com>; Wed,  9 Feb 2011 09:37:56 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IXnI3NQw9F70 for <ips@core3.amsl.com>; Wed,  9 Feb 2011 09:37:55 -0800 (PST)
Received: from keetweej.vanheusden.com (tunnel947.ipv6.xs4all.nl [IPv6:2001:888:10:3b3::2]) by core3.amsl.com (Postfix) with ESMTP id DA0CD3A69D1 for <ips@ietf.org>; Wed,  9 Feb 2011 09:37:53 -0800 (PST)
Received: from belle.intranet.vanheusden.com (belle.intranet.vanheusden.com [192.168.64.100]) by keetweej.vanheusden.com (Postfix) with ESMTP id 3B7E1162E11 for <ips@ietf.org>; Wed,  9 Feb 2011 18:38:03 +0100 (CET)
Received: by belle.intranet.vanheusden.com (Postfix, from userid 1000) id 08E2B93367; Wed,  9 Feb 2011 18:38:02 +0100 (CET)
Date: Wed, 9 Feb 2011 18:38:02 +0100
From: folkert <folkert@vanheusden.com>
To: ips@ietf.org
Message-ID: <20110209173802.GW19602@belle.intranet.vanheusden.com>
References: <20110209171827.GU19602@belle.intranet.vanheusden.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20110209171827.GU19602@belle.intranet.vanheusden.com>
Organization: www.unixexpert.nl
X-Chameleon-Return-To: folkert@vanheusden.com
X-Xfmail-Return-To: folkert@vanheusden.com
X-Phonenumber: +31-6-41278122
X-URL: http://www.vanheusden.com/
X-PGP-KeyID: 1F28D8AE
X-GPG-fingerprint: AC89 09CE 41F2 00B4 FCF2  B174 3019 0E8C 1F28 D8AE
X-Key: http://pgp.surfnet.nl:11371/pks/lookup?op=get&search=0x1F28D8AE
Read-Receipt-To: <folkert@vanheusden.com>
Reply-By: Sat Jan 15 11:07:06 CET 2011
X-Message-Flag: www.vanheusden.com
User-Agent: Mutt/1.5.18 (2008-05-17)
Subject: Re: [Ips] iSCSI WRITE (10)
X-BeenThere: ips@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: IP Storage <ips.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/ips>, <mailto:ips-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/ips>
List-Post: <mailto:ips@ietf.org>
List-Help: <mailto:ips-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ips>, <mailto:ips-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 09 Feb 2011 17:37:56 -0000

> Ok I'm a lot further: the whole discovery handshake (including mode
> sense, inquiries and what not) works find. Small reads/writes work too
> (the ones with data in the pdu message).
> 
> Something which is not entirely clear from the RFC is the following:
> - an initiator sends a 0x05 PDU (data-out) with data to be stored on
>   disk.
>   after processing, the target should send back a 0x21 PDU (scsi
>   response). is that correct?

Let me elaborate:

I -> T PDU 0x01 (scsi request), opcode 0x2a (WRITE 10)
T -> I PDU 0x21 (scsi response)
more data follows, so
I -> T PDU 0x05 (data out)
T -> I PDU 0x21 (scsi response, for each data out)


Folkert van Heusden

-- 
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com

From Sanjay_Goyal@pmc-sierra.com  Sun Feb 13 20:21:05 2011
Return-Path: <Sanjay_Goyal@pmc-sierra.com>
X-Original-To: ips@core3.amsl.com
Delivered-To: ips@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 15CE83A6C48 for <ips@core3.amsl.com>; Sun, 13 Feb 2011 20:21:05 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.288
X-Spam-Level: 
X-Spam-Status: No, score=-2.288 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HOST_MISMATCH_COM=0.311]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Nzxd-QAXMbRH for <ips@core3.amsl.com>; Sun, 13 Feb 2011 20:21:04 -0800 (PST)
Received: from bby1mta03.pmc-sierra.bc.ca (bby1mta03.pmc-sierra.com [216.241.235.118]) by core3.amsl.com (Postfix) with ESMTP id F24343A6C46 for <ips@ietf.org>; Sun, 13 Feb 2011 20:21:03 -0800 (PST)
Received: from bby1mta03.pmc-sierra.bc.ca (localhost.pmc-sierra.bc.ca [127.0.0.1]) by localhost (Postfix) with SMTP id 886EB10700E4; Sun, 13 Feb 2011 19:50:30 -0800 (PST)
Received: from bby1exg02.pmc_nt.nt.pmc-sierra.bc.ca (bby1exg02 [216.241.231.167]) by bby1mta03.pmc-sierra.bc.ca (Postfix) with SMTP id 57A9A10700E3; Sun, 13 Feb 2011 19:50:30 -0800 (PST)
Received: from BBY1EXM11.pmc_nt.nt.pmc-sierra.bc.ca ([216.241.231.157]) by bby1exg02.pmc_nt.nt.pmc-sierra.bc.ca with Microsoft SMTPSVC(6.0.3790.4675); Sun, 13 Feb 2011 19:50:30 -0800
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Date: Sun, 13 Feb 2011 19:50:27 -0800
Message-ID: <FA7C8333A54EE645BA64C09EBA8B632805CC6D32@BBY1EXM11.pmc_nt.nt.pmc-sierra.bc.ca>
In-Reply-To: <20110209173802.GW19602@belle.intranet.vanheusden.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [Ips] iSCSI WRITE (10)
Thread-Index: AcvIgB/ldbDqFtIDSMeVXn1iU4gJqQDefxEA
References: <20110209171827.GU19602@belle.intranet.vanheusden.com> <20110209173802.GW19602@belle.intranet.vanheusden.com>
From: "Sanjay Goyal" <Sanjay_Goyal@pmc-sierra.com>
To: "folkert" <folkert@vanheusden.com>, <ips@ietf.org>
X-OriginalArrivalTime: 14 Feb 2011 03:50:30.0342 (UTC) FILETIME=[52E87660:01CBCBFA]
Subject: Re: [Ips] iSCSI WRITE (10)
X-BeenThere: ips@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: IP Storage <ips.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/ips>, <mailto:ips-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/ips>
List-Post: <mailto:ips@ietf.org>
List-Help: <mailto:ips-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ips>, <mailto:ips-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 14 Feb 2011 04:21:05 -0000

Response should be sent once, after all the write data ( I assume it is
unsolicited data) is received.

I -> T PDU 0x01 (scsi request), opcode 0x2a (WRITE 10)
I -> T PDU 0x05 (data out)
I -> T PDU 0x05 (data out)
...
T -> I PDU 0x21 (scsi response, for each data out)


-----Original Message-----
From: ips-bounces@ietf.org [mailto:ips-bounces@ietf.org] On Behalf Of
folkert
Sent: Wednesday, February 09, 2011 11:08 PM
To: ips@ietf.org
Subject: Re: [Ips] iSCSI WRITE (10)

> Ok I'm a lot further: the whole discovery handshake (including mode
> sense, inquiries and what not) works find. Small reads/writes work too
> (the ones with data in the pdu message).
>=20
> Something which is not entirely clear from the RFC is the following:
> - an initiator sends a 0x05 PDU (data-out) with data to be stored on
>   disk.
>   after processing, the target should send back a 0x21 PDU (scsi
>   response). is that correct?

Let me elaborate:

I -> T PDU 0x01 (scsi request), opcode 0x2a (WRITE 10)
T -> I PDU 0x21 (scsi response)
more data follows, so
I -> T PDU 0x05 (data out)
T -> I PDU 0x21 (scsi response, for each data out)


Folkert van Heusden

--=20
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com
_______________________________________________
Ips mailing list
Ips@ietf.org
https://www.ietf.org/mailman/listinfo/ips
