From owner-freebsd-current@FreeBSD.ORG Wed Sep 11 19:07:23 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id A0234769; Wed, 11 Sep 2013 19:07:23 +0000 (UTC) (envelope-from outbackdingo@gmail.com) Received: from mail-pa0-x22b.google.com (mail-pa0-x22b.google.com [IPv6:2607:f8b0:400e:c03::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 64EEF20E1; Wed, 11 Sep 2013 19:07:23 +0000 (UTC) Received: by mail-pa0-f43.google.com with SMTP id hz10so25695pad.16 for ; Wed, 11 Sep 2013 12:07:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=OZLh5zAECRWx3wlJge1vOuuRPWo5vMsXvlLMa8hca7g=; b=pJVHH+0OJT4aFL4Ex9abRnVHK9KMJ71VD4poL+LuKXMFIfDV1RLTAlGSe7Zch5DPQQ ck5eyND++oGgyFxolvbVSo5JZ3GFLCi/kiWbJHYHi5f5ra41FTzQ8mJblVyKfMjlvBBl MZfjoXsOmc5+jW80GkiZu18CsJtRzqZktG9DdRmnVHfxzyLz1isuVSRIdxsKWQQIEFIw cbRZIXkmsWdi61hsQPk3BdkJ4APQMiBRRv/rbh1V6SuMFJ+vYc1fv/dz/f4TqiD2/UWn FvZb3NP5PagSgE3QhN3jY9l205vXyyBbWNpI4KQnS6lpjiLPyDL5HzHn3xl3bV7QOOGY ZnTw== MIME-Version: 1.0 X-Received: by 10.66.49.68 with SMTP id s4mr5374984pan.98.1378926443011; Wed, 11 Sep 2013 12:07:23 -0700 (PDT) Received: by 10.66.126.141 with HTTP; Wed, 11 Sep 2013 12:07:22 -0700 (PDT) In-Reply-To: References: <522A1C73.9030402@mu.org> Date: Wed, 11 Sep 2013 15:07:22 -0400 Message-ID: Subject: Re: New iSCSI stack. From: Outback Dingo To: =?ISO-8859-2?Q?Edward_Tomasz_Napiera=B3a?= Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-scsi@freebsd.org, "freebsd-arch@freebsd.org" , Alfred Perlstein , "freebsd-current@FreeBSD.org" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Sep 2013 19:07:23 -0000 On Wed, Sep 11, 2013 at 1:09 PM, Outback Dingo wrot= e: > > > > On Wed, Sep 11, 2013 at 11:06 AM, Outback Dingo w= rote: > >> >> >> >> On Sun, Sep 8, 2013 at 9:32 AM, Outback Dingo wr= ote: >> >>> >>> >>> >>> On Sun, Sep 8, 2013 at 6:29 AM, Edward Tomasz Napiera=B3a < >>> trasz@freebsd.org> wrote: >>> >>>> Wiadomo=B6=E6 napisana przez Alfred Perlstein w dniu 6= wrz >>>> 2013, o godz. 20:18: >>>> > On 9/5/13 3:27 AM, Edward Tomasz Napiera=B3a wrote: >>>> >> Hello. At http://people.freebsd.org/~trasz/cfiscsi-20130904.diffyo= u'll find >>>> >> a patch which adds the new iSCSI initiator and target, against >>>> 10-CURRENT. >>>> >> To use the new initiator, start with "man iscsictl". For the targe= t >>>> - "man >>>> >> ctld". >>>> >> >>>> >> All feedback is welcome. If nothing unexpected comes up, I'll >>>> commit it >>>> >> in a few days from now. Note that it's still not optimized; at thi= s >>>> point >>>> >> I'm focusing more on reliability and interoperability. >>>> >> >>>> >> This work is being sponsored by FreeBSD Foundation. >>>> >> >>>> >> _______________________________________________ >>>> >> freebsd-current@freebsd.org mailing list >>>> >> http://lists.freebsd.org/mailman/listinfo/freebsd-current >>>> >> To unsubscribe, send any mail to " >>>> freebsd-current-unsubscribe@freebsd.org" >>>> >> >>>> > Edward, this is really exciting! >>>> > >>>> > Is there an easy way to use the userland iscsi configuration files? >>>> >>>> Which iSCSI userland configuration files, the ctl.conf(5)? If you nee= d >>>> an ability to parse it and modify from a shell scripts, see confctl >>>> utility >>>> (sysutils/confctl, https://github.com/trasz/confctl/). >>>> >>>> > We would love to quickly backport and ship this with FreeNAS as an >>>> option for our users, having the config files be the same OR having a = very >>>> good converter would really make that much easier for us. >>>> >>>> Porting to 9 should be quite easy - there are Capsicum API differences= ; >>>> you might also want to compare CTL between 10 and 9 to see if there ar= e >>>> any changes which need to be merged. Taking a look at the code >>>> searching >>>> for possible security issues would be also very welcome :-) >>>> >>>> As for the config files - writing a converter should be quite easy. >>>> Which >>>> configuration files you need to support, ctl.conf(5) and istgt >>>> configuration? >>>> >>> >>> I was i belive quite close to having it working on the last patch, >>> however could never seem to get the ctl kernel module to function, >>> And feel im a bit further away with this latest patch retracing my >>> steps, from previous... quite easy to backport.... maybe for you, or ot= her >>> but yes, I also would like to integrate the work to stable/9 in the lab >>> for some benchmarks >>> >>>> >>>> >> Still trying to tackle this...... any ideas?? I think if i can get past >> the few errors im encountering i can get a patch against stable/9 for >> others to test.... >> Negate the last posted error, Ive worked past it..... I think if i can >> get past this capsicum issue, ill have a kernel >> >> =3D=3D=3D> iscsi (all) >> clang -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE >> -nostdinc -I/usr/home/dingo/devel/sys/modules/iscsi/../../ofed/include >> -DHAVE_KERNEL_OPTION_HEADERS -include >> /usr/obj/usr/home/dingo/devel/sys/GENERIC/opt_global.h -I. -I@ -I@/contr= ib/altq >> -fno-common -g -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer >> -I/usr/obj/usr/home/dingo/devel/sys/GENERIC -mno-aes -mno-avx >> -mcmodel=3Dkernel -mno-red-zone -mno-mmx -mno-sse -msoft-float >> -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector >> -std=3Diso9899:1999 -Qunused-arguments -fstack-protector -Wall >> -Wredundant-decls -Wnested-externs -Wstrict-prototypes >> -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef >> -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs >> -fdiagnostics-show-option -Wno-error-tautological-compare >> -Wno-error-empty-body -Wno-error-parentheses-equality -c >> /usr/home/dingo/devel/sys/modules/iscsi/../../dev/iscsi//icl.c >> /usr/home/dingo/devel/sys/modules/iscsi/../../dev/iscsi//icl.c:1098:26: >> error: use of undeclared identifier 'CAP_SOCK_CLIENT' >> cap_rights(&rights, CAP_SOCK_CLIENT), &fp); >> ^ >> 1 error generated. >> *** [icl.o] Error code 1 >> >> Stop in /usr/home/dingo/devel/sys/modules/iscsi. >> > and i guess, icl needs to be "upgraded" ? KLD ctl.ko: depends on icl - not available or version mismatch > >> >> _______________________________________________ >>>> freebsd-current@freebsd.org mailing list >>>> http://lists.freebsd.org/mailman/listinfo/freebsd-current >>>> To unsubscribe, send any mail to " >>>> freebsd-current-unsubscribe@freebsd.org" >>>> >>> >>> >> >