From owner-freebsd-arch@freebsd.org Thu Sep 28 15:40:58 2017 Return-Path: Delivered-To: freebsd-arch@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 49A5AE01B1A for ; Thu, 28 Sep 2017 15:40:58 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-it0-x244.google.com (mail-it0-x244.google.com [IPv6:2607:f8b0:4001:c0b::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1CA203F5F for ; Thu, 28 Sep 2017 15:40:58 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-it0-x244.google.com with SMTP id c195so1892702itb.4 for ; Thu, 28 Sep 2017 08:40:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=G5DkDD5C/gN+ML+ySOMSmf2+vvbSRls8DluEb13QjkY=; b=AD/tC78aczSDwo4HOERGpMA97/OAubBFm687b51+OVPTkM9I1Nm8RLFsd8IAzJsi5a KEFjoIRgbIGgpi293rBovPjGkNWamO0hTzT2B/lACY6DBHOidcy1qdiufS2HX7PkHXDa HAfZvw/ipIkXpQbubFP7mH0ERykf9R3azGv9vXRyRBCc4ecS6nXC6+b9QBfd5/eu1Twz JsTLF8KDxop2oC9tUJTIgwzs2GTjpv3pdMAkaE8tJb8/oRyH/L81b9G+aT1El/XRhAq8 asMopnpS3BoC4ILSoHLjKpQde5+d+3b7uzPl47T56ogwVJfZq0RQLNBzqj/vV23M4MaH UNAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=G5DkDD5C/gN+ML+ySOMSmf2+vvbSRls8DluEb13QjkY=; b=JTMDvPyoAz85e0n+PjRNEVd500yj1gJ93kusF70Xm9Nbz2uKHJcAjeT8d0ZeutsLhj BhZbp8ZUepqqvqEHxx15TpH4A2FcIUr5BA66biYqSmuTG7dn4TxkifNNmHA86zJFOdf/ zEd2iXQOxLSvt7HRxUUHfHoc1IAfXtzWp/3IlVB927QvyeQLYD197AkU4uBNBbwVDCP0 t2UtyCUySYlRpZJVxqRp8rAqGQ7ISCvbTlpi6utikfUgGVa6Nlc0CkVdaoonkyw2eC+X XiSTim320+3ad2t8HjEDRLxOev+sPYPk0uhgUjEydFqM1oCJnFp3KdvB2sZZ0DuVKfiL 84jg== X-Gm-Message-State: AMCzsaWSzuRrPRqh5cFSlnsD2sM6E2SJdiJeEn3dbNnCV7dt8PsJ6z0Q gld9AcN1RhhkoOByIHnGKEeCRysGuO402EIFKRQBJw== X-Google-Smtp-Source: AOwi7QCRQzAXgMyPAdLTBVo5Q8m79f0dtQTaq+JEsZmcYTGy6w4luvN6nkdCrvhOUOS8K2qVPweh2g7THzcuMaLyiqc= X-Received: by 10.36.20.149 with SMTP id 143mr2092504itg.63.1506613257080; Thu, 28 Sep 2017 08:40:57 -0700 (PDT) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 10.79.2.194 with HTTP; Thu, 28 Sep 2017 08:40:56 -0700 (PDT) X-Originating-IP: [2603:300b:6:5100:191c:5e93:2feb:3c70] In-Reply-To: References: From: Warner Losh Date: Thu, 28 Sep 2017 09:40:56 -0600 X-Google-Sender-Auth: eCiuINTNektWS9Tfn19li8JMZKE Message-ID: Subject: Re: lua in zfs To: Andriy Gapon Cc: "freebsd-arch@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Sep 2017 15:40:58 -0000 On Thu, Sep 28, 2017 at 9:16 AM, Andriy Gapon wrote: > On 28/09/2017 16:13, Warner Losh wrote: > > Which version? Where in the tree? Can this be disabled? > > It's lua 5.2.4 at the moment. Its source code will reside in > sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua. At run-time it will > be in > zfs.ko or in kernel if it's built with ZFS option. For time being, it's > not > possible to turn it off individually, but if you don't include ZFS or any > CDDL > licensed code at all, then you won't have Lua too. But I think that it > should > be possible to add a new knob specifically to compile ZFS without Lua, if > anybody wants it. OK. Any chance you could put it in sys/contrib/lua instead? The same place that the boot loader lua project has it? The lua boot loader project is using 5.3.0 it seems, is there any reason you couldn't use that instead? I've been working on this in the background and was hoping to get it in before 12. Warner > > On Thu, Sep 28, 2017 at 5:40 AM, Andriy Gapon wrote: > > > >> > >> I am going to import the upstream ZFS Channel Programs change that adds > Lua > >> interpreter to ZFS kernel code. In addition to pure Lua (no libraries) > it > >> also > >> has a number of functions to interact with ZFS. No general purpose > kernel > >> access. > > -- > Andriy Gapon >