From owner-freebsd-arch@freebsd.org Thu Sep 28 15:59:28 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 E4558E0229A for ; Thu, 28 Sep 2017 15:59:28 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-io0-x241.google.com (mail-io0-x241.google.com [IPv6:2607:f8b0:4001:c06::241]) (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 A7C4463D7C for ; Thu, 28 Sep 2017 15:59:28 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-io0-x241.google.com with SMTP id e9so1221978iod.5 for ; Thu, 28 Sep 2017 08:59:28 -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=c1MMEJPWAPKg7st5MqpmVaB5udp4vFYg2N3RajCk9Y8=; b=HVEqiR8O/kED8vjri9qc8tfqQp19Rvvl1XqfhdR++u2dgYAdcVzQL0W1Gb5i0c5K1D n/ryl6bsPVU8kn0wENkXcoAvXL6EnibSfCn1IdfBKwk/WmKkAfB+ePfXGEEMZWgRIpbS /r5TqET6QL6c8BZsv7uJSCjENQg37pkJ8Bmp736PdN3UsIh29uzr4kxE97EFRIp02J0f PmIRJiXekB888Z4917N3BDotWnLZraJQIPB7Q29zofxVrKWDbw+d7PcuObzm/unJOeQL FIonRkPu2QQnNW40WNtjfEGLgte6tna6SOa1mImwPv5CIjrXuv8gYsBigH3wdIa39k7q O7Mg== 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=c1MMEJPWAPKg7st5MqpmVaB5udp4vFYg2N3RajCk9Y8=; b=tGoUzmueEiqYoNf88H3VMn+l2W7FvOg53qs30Kv4JrpEKf561JEuivz+hpeEygt+9g D3krEKFQhzy+KqIBWQrI04bNT68gG129oDYnGc8OE17CMSNRXZtaJQTtICiXuZL2UpUa QnOpIdTmiyRzkD9dPH9bPT0+Wdkl2WXl6l0G4SOZcZtDC6zKvqQMCbLcW1rjkoJfY4DO yeVkfTNZiUkEoWeH425ydwl4kPNSJITZmToqtfir6E906nVzcxgnRmDkxI40Bp7Po5lg FF0y9j27DldVyBDIN0o0nGjhWpSZXRaOVWUIs8znZb/y/DkkhRB0Tvd4i4CeP6wVoFeg UwUQ== X-Gm-Message-State: AMCzsaXINmq3GFHZcOuIXO8yLMEZ/8l0a/nuCyX7q8ZZGvVbuJTbIhYu /obUbG6ku56MaAkIpRG4DR4+XW4sOiF4RT6P/flI8Q== X-Google-Smtp-Source: AOwi7QBT6kg2WESmhiS8gJpIaQSRYJgWzJ8hghRfuuMbW8+imPY8Bb09aoYiuLWmu/XcY7ZcSAk4gIaZd+DMaEO/3ps= X-Received: by 10.107.7.161 with SMTP id g33mr7674432ioi.169.1506614367674; Thu, 28 Sep 2017 08:59:27 -0700 (PDT) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 10.79.2.194 with HTTP; Thu, 28 Sep 2017 08:59:27 -0700 (PDT) X-Originating-IP: [2603:300b:6:5100:191c:5e93:2feb:3c70] In-Reply-To: <1506614109.31939.20.camel@freebsd.org> References: <1506614109.31939.20.camel@freebsd.org> From: Warner Losh Date: Thu, 28 Sep 2017 09:59:27 -0600 X-Google-Sender-Auth: 741jh_9EjZUGW4NWRQcJRnOulnI Message-ID: Subject: Re: lua in zfs To: Ian Lepore Cc: Andriy Gapon , "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:59:29 -0000 On Thu, Sep 28, 2017 at 9:55 AM, Ian Lepore wrote: > On Thu, 2017-09-28 at 09:40 -0600, Warner Losh wrote: > > 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 > > Iirc, the big difference between 5.2.x and 5.3 is that the latter added > support for integers. It seems like that would be a good thing, in the > kernel. > I have a dim memory that this is why the boot loader project used it, but I may be misremembering. In any event, so people can follow along at home, there's a freshly rebased version of the lua-bootloader branch in https://github.com/bsdimp/freebsd.git I just pushed. Warner