From owner-freebsd-scsi@FreeBSD.ORG Sat Apr 18 00:27:52 2009 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4927D106566B for ; Sat, 18 Apr 2009 00:27:52 +0000 (UTC) (envelope-from aoyama@peach.ne.jp) Received: from moon.peach.ne.jp (unknown [IPv6:2001:380:e06:127::53]) by mx1.freebsd.org (Postfix) with ESMTP id E47988FC1A for ; Sat, 18 Apr 2009 00:27:51 +0000 (UTC) (envelope-from aoyama@peach.ne.jp) Received: from moon.peach.ne.jp (localhost [127.0.0.1]) by moon.peach.ne.jp (Postfix) with ESMTP id A688878C3B; Sat, 18 Apr 2009 09:27:50 +0900 (JST) Received: from artemis (unknown [192.168.2.20]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by moon.peach.ne.jp (Postfix) with ESMTP id 7EFF078C34; Sat, 18 Apr 2009 09:27:50 +0900 (JST) Message-ID: <7B6C12AFB0774E5EB10D98303E8CA838@artemis> From: "Daisuke Aoyama" To: "Danny Braniss" References: <44FFCAD8FBB0416FAFFFA879A92C43DF@artemis> <07B5ECD1779A4B1C9AF932252EE74EC8@artemis> Date: Sat, 18 Apr 2009 09:27:43 +0900 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5512 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Virus-Scanned: ClamAV using ClamSMTP Cc: freebsd-scsi@freebsd.org Subject: Re: iSCSI initiator questions X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Apr 2009 00:27:52 -0000 Hi danny, I got an error at isc_soc.c when compile. It should use 'z' length modifier for size_t in C99. (usually '%zu' for size_t) ---------------------------------------------------------------------- cc -c -O1 -pipe -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I../../.. -I../../../contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param arge-function-growth=1000 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Werror ../../../dev/iscsi/initiator/isc_soc.c cc1: warnings being treated as errors ../../../dev/iscsi/initiator/isc_soc.c: In function 'so_recv': ../../../dev/iscsi/initiator/isc_soc.c:438: warning: format '%ld' expects type 'long int', but argument 3 has type 'size_t' *** Error code 1 ---------------------------------------------------------------------- I try to use 2.1.2 with istgt 20090416. (this version send-pr as 133782. check http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/133782) It seems to work at first connection but reconnection does not work. It seems to receive digest with Login Request PDU. Even if digest was used on previous connection, reset is reuqired on new connection. (I tried simply "/usr/local/etc/rc.d/istgt restart") Please check it when reconnection has occurred. See also RFC3720 10.12 and 10.13 for Login Request/Response PDU format. Thanks, -- Daisuke Aoyama