From owner-freebsd-stable@FreeBSD.ORG Sat Mar 20 12:16:05 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9ABBF106566B for ; Sat, 20 Mar 2010 12:16:05 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from mail.digiware.nl (mail.ip6.digiware.nl [IPv6:2001:4cb8:1:106::2]) by mx1.freebsd.org (Postfix) with ESMTP id 191E68FC0A for ; Sat, 20 Mar 2010 12:16:04 +0000 (UTC) Received: from localhost (localhost.digiware.nl [127.0.0.1]) by mail.digiware.nl (Postfix) with ESMTP id 94F5B153448; Sat, 20 Mar 2010 13:16:03 +0100 (CET) X-Virus-Scanned: amavisd-new at digiware.nl Received: from mail.digiware.nl ([127.0.0.1]) by localhost (rack1.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AhT71D9vFGMt; Sat, 20 Mar 2010 13:16:01 +0100 (CET) Received: from [127.0.0.1] (unknown [192.168.10.212]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.digiware.nl (Postfix) with ESMTPSA id 900D1153436; Sat, 20 Mar 2010 13:16:01 +0100 (CET) Message-ID: <4BA4BC82.3020606@digiware.nl> Date: Sat, 20 Mar 2010 13:16:02 +0100 From: Willem Jan Withagen User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 MIME-Version: 1.0 To: Charles Sprickman References: <4BA08FA8.5000902@omnilan.de> <585602e11003170127t669ebe04k752bc4383f3fde22@mail.gmail.com> <4BA3FF91.7090903@digiware.nl> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Matthias Gamsjager , FreeBSD Stable Users Subject: Re: Does zfs have it's own nfs server? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Mar 2010 12:16:05 -0000 On 20-3-2010 0:50, Charles Sprickman wrote: > Just wondering, is this using the base nfsd/mountd, or is there some > in-kernel nfs code strictly for zfs? I haven't found much info on the > share* options in the manpage or wiki. There's also the complete ZFS manual you should read: http://dlc.sun.com/pdf/819-5461/819-5461.pdf It's for Solaris, so perhaps not everything works on FreeBSD. But most of it will. > Could you give an example of passing options that would say, limit to a > subnet and map root to root using the zfs sharenfs command? Something like this: (Email might wrap the line) zfs set sharenfs='-alldirs -maproot=0 -network 192.168.10.0 -mask 255.255.255.0' zfsdata/home/wjw to export /home/wjw which is available as /zfsdata/home/wjw in ZFS. All the zfs does is add this to the /etc/zfs/exports file. And then the regular mountd/nfsd combo does the NDS-service. --WjW