From owner-freebsd-scsi@FreeBSD.ORG Fri Sep 6 08:40:18 2013 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 2ADC1A5A; Fri, 6 Sep 2013 08:40:18 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: from mail-ee0-x234.google.com (mail-ee0-x234.google.com [IPv6:2a00:1450:4013:c00::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 463492993; Fri, 6 Sep 2013 08:40:17 +0000 (UTC) Received: by mail-ee0-f52.google.com with SMTP id c41so1419865eek.39 for ; Fri, 06 Sep 2013 01:40:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Y3WlgjdZoH3tOlcwUXuE+VCvzbQ2xkCjlHp/C+bUSfU=; b=O90S/VojZLCvvJ8XHDjEVBpxQ5eI1eMDsXvZHtP4yxRyEMRf9DU2zjhdnaQ8j+xOLF Ic1/tioUtEBj0Od2b86823bRbsQ7V9amCGmNC9VHKU4AZQNgitN7G1GJIaRCJBIViara q/Pe88sW6zbRPl52OCslfHQ9ncKHfMbcAOF3LoQo2P5aLw8MSuLUn7+EDhlLxNzZKmJn U0KujkU9xkMEyZjTH/fGl7yxd4UhIa1UaWUgrHkeAjWDY8ROkX4VORTJkIIpTyBMCpgs TZAkfaGA8scqqUAbH2MdnvvzZY9VqDol4OtJGXM2BdpV8b7GWoMB4vBEGkdhNkgbx+aa Zy1A== X-Received: by 10.14.219.198 with SMTP id m46mr2289055eep.41.1378456815477; Fri, 06 Sep 2013 01:40:15 -0700 (PDT) Received: from [192.168.1.102] (ajg161.neoplus.adsl.tpnet.pl. [83.25.240.161]) by mx.google.com with ESMTPSA id j7sm2261920eeo.15.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 06 Sep 2013 01:40:15 -0700 (PDT) Sender: =?UTF-8?Q?Edward_Tomasz_Napiera=C5=82a?= Content-Type: text/plain; charset=iso-8859-2 Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: New iSCSI stack. From: =?iso-8859-2?Q?Edward_Tomasz_Napiera=B3a?= In-Reply-To: Date: Fri, 6 Sep 2013 10:40:13 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <70B4560F-2335-4F16-A9F4-C9E22DE908F3@freebsd.org> References: <34CEBF66-08BF-4265-8558-4A4A62109C77@FreeBSD.org> <5228D1A6.4020405@quip.cz> <20130905230907.179efafd@munin.geoinf.fu-berlin.de> <37808388-FB41-4C92-BF7C-5BAAB22BCB70@freebsd.org> To: Outback Dingo X-Mailer: Apple Mail (2.1508) Cc: Miroslav Lachman <000.fbsd@quip.cz>, freebsd-current@freebsd.org, Ivan Voras , freebsd-arch@freebsd.org, freebsd-scsi@freebsd.org, "O. Hartmann" X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Sep 2013 08:40:18 -0000 Wiadomo=B6=E6 napisana przez Outback Dingo w = dniu 6 wrz 2013, o godz. 09:46: > On Fri, Sep 6, 2013 at 1:50 AM, Edward Tomasz Napiera=B3a = wrote: > New patch, updated for Capsicum changes, is here: >=20 > http://people.freebsd.org/~trasz/cfiscsi-20130906.diff >=20 >=20 > Bravo.... patched, compiled successfully and tested a lun using ctld >=20 > cfiscsi_ioctl_handoff: new connection from = iqn.1993-08.org.debian:01:7a3a657cdd11 (192.168.122.1) to = iqn.2012-06.com.example:target2 > (0:2:0:0): MAINTENANCE (IN). CDB: a3 0c 01 12 00 00 00 00 02 00 00 00=20= > (0:2:0:0): Tag: 0x0011, Type: 1 > (0:2:0:0): CTL Status: SCSI Error > (0:2:0:0): SCSI Status: Check Condition > (0:2:0:0): SCSI sense: ILLEGAL REQUEST asc:24,0 (Invalid field in CDB) > (0:2:0:0): Command byte 1 bit 4 is invalid >=20 > it was mounted. partitioned, formatted ext4 and data copied to/from a = linux host Thanks! It's worth mentioning that the CTL messages like one above are = normal - it's just that Linux is trying to use some optional part of SCSI protocol the = CTL doesn't (yet) support. (You can actually tell what initiator it is, just by looking = at those - Linux tries to use MAINTENANCE IN, Windows - VERIFY, and Solaris does something = weird with mode pages.)