From owner-freebsd-hackers@FreeBSD.ORG Wed May 30 18:25:07 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BF6BC16A41F for ; Wed, 30 May 2007 18:25:07 +0000 (UTC) (envelope-from patrick_dkt@yahoo.com.hk) Received: from web54308.mail.yahoo.com (web54308.mail.yahoo.com [206.190.49.118]) by mx1.freebsd.org (Postfix) with SMTP id C695013C480 for ; Wed, 30 May 2007 18:25:06 +0000 (UTC) (envelope-from patrick_dkt@yahoo.com.hk) Received: (qmail 74781 invoked by uid 60001); 30 May 2007 17:58:26 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.hk; h=Message-ID:X-YMail-OSG:Received:Date:From:Subject:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding; b=kqSbLZF2QAdWqWt7ht3s9kXIYphx8OaB7J5pmpmxhpWxz8PaRWwttAt896iMmQbRAl74hKSda76LXNuO6QiRhVdkECTxijphMXI5C6pU+SQgWMe4KZTD1nVV8ZXUA1y2Mb3lyeGtBUoLxO2JEyU1eNUr9ediuGAodzV+83RyqYQ= ; Message-ID: <20070530175826.74779.qmail@web54308.mail.yahoo.com> X-YMail-OSG: XQzz8jgVM1kUx_juuvFOvXFcPWClJueoDTt.JTyYVQA3ZVrazaIjpIn.n_2jyiGHWzPYejHbIUyofcg3aDkjwlEJNT1QwOPiz7KgJwEKc41aR04KpL841zQQqveHZT_SZBx9_NkyTxsT.urk.NBby2bKDWtx8tJU2Rv6X65qg32A7ovCoNIi Received: from [61.15.61.52] by web54308.mail.yahoo.com via HTTP; Wed, 30 May 2007 10:58:26 PDT Date: Wed, 30 May 2007 10:58:26 -0700 (PDT) From: Patrick Dung To: freebsd-ports@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Wed, 30 May 2007 19:01:06 +0000 Cc: freebsd-hackers@freebsd.org Subject: can we use disk device for iscsi-target port? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 May 2007 18:25:07 -0000 Hi This port is from netbsd. I have test it, It is great. I found it seems iscsi-target has to take a file instead of disk devicek (eg. /dev/da1) as the target. Below is my test result: Starting iscsi_target. Reading configuration from `/usr/local/etc/iscsi/targets' target0:rw:0.0.0.0/0 extent0:/dev/da1:0:10733223936 DISK: 1 logical units (20963328 blocks, 512 bytes/block), type iscsi fs DISK: LU 0: pid 896:disk.c:778: ***ERROR*** error reading "target0"pid 896:disk.c:895: ***ERROR*** error allocating space for "target0"pid 896:target.c:1487: ***ERROR*** device_init() failed pid 896:iscsi-target.c:150: ***ERROR*** target_init() failed It would be great if disk device can be used directly. BTW, I have not yet test netbsd with raw disk. seems someone test on openbsd and it seems working: http://www.freebsdforums.org/forums/showthread.php?t=43960 Thanks Patrick ____________________________________________________________________________________Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more. http://mobile.yahoo.com/go?refer=1GNXIC