From owner-freebsd-stable@FreeBSD.ORG Mon Feb 8 22:32:32 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 0C1C4106568B for ; Mon, 8 Feb 2010 22:32:32 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-iw0-f198.google.com (mail-iw0-f198.google.com [209.85.223.198]) by mx1.freebsd.org (Postfix) with ESMTP id B505F8FC18 for ; Mon, 8 Feb 2010 22:32:31 +0000 (UTC) Received: by iwn36 with SMTP id 36so1503246iwn.3 for ; Mon, 08 Feb 2010 14:32:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=r3moLBgYJtJbjcgQEfkDfVKDF8j5SPtR98jvQD2KYao=; b=aIhQms3mhas7IhTnGoVk3vvznUqbHWQN2BcwFhTGLna9esP3YjZaqMbsQVgMQ3jKPP HX5nujZcIXKH43CjxyhZkRIUcdKxnrjRTRNWzF3NXJ71JZfQ0hAl/i5ncxl/BmFtMh3f OYSFnCyKmLa4DjvQrqzH8NCzdx3aJkj5wbEQg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=eFS/2ghhDy5I2qD6/cRy0x6I3i3q7sfm072VKV9BcSfLE8mGBdm98esSearQHr1t5p dCV1mUJZWI3gUeFZh65Rr5XqukyJHoquuXRVUzfKflKv+CQPc8pLL0Bied8vZfvtJjDy UKxdgFxXIUFJhHSHDkUc/bq08qbduqapBDafg= MIME-Version: 1.0 Received: by 10.231.159.207 with SMTP id k15mr3190505ibx.75.1265668350992; Mon, 08 Feb 2010 14:32:30 -0800 (PST) In-Reply-To: References: <4B6FE550.9020506@zedat.fu-berlin.de> <4B70497B.1000908@zedat.fu-berlin.de> Date: Mon, 8 Feb 2010 14:32:30 -0800 Message-ID: From: Freddie Cash To: freebsd-stable@freebsd.org, freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: NFSv4: mount -t nsf4 not the same as mount_newnfs? 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: Mon, 08 Feb 2010 22:32:32 -0000 On Mon, Feb 8, 2010 at 2:37 PM, Rick Macklem wrote: > ps: ZFS also has its own export stuff, but it is my understanding that > putting a line in /etc/exports is sufficient. I've never used ZFS, > so others will know more than I. > My understanding (from having used NFS and ZFS, haven't looked at the code) is that: The sharenfs property for a ZFS dataset gets written out to /etc/zfs/exports, which gets appended to the mountd command-line by default. Thus, you can use /etc/exports or sharenfs property, whichever is easier. # zfs get sharenfs storage/backup NAME PROPERTY VALUE SOURCE storage/backup sharenfs -maproot=root 192.168.0.12 local # cat /etc/exports # cat /etc/zfs/exports # !!! DO NOT EDIT THIS FILE MANUALLY !!! /storage/backup -maproot=root 192.168.0.12 # pgrep -lf exports 1381 /usr/sbin/mountd -r -p 32000 /etc/exports /etc/zfs/exports -- Freddie Cash fjwcash@gmail.com