From owner-freebsd-doc@FreeBSD.ORG Fri Aug 17 05:40:07 2012 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C20BC106564A for ; Fri, 17 Aug 2012 05:40:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 822228FC14 for ; Fri, 17 Aug 2012 05:40:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q7H5e75W071135 for ; Fri, 17 Aug 2012 05:40:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q7H5e7Ok071134; Fri, 17 Aug 2012 05:40:07 GMT (envelope-from gnats) Resent-Date: Fri, 17 Aug 2012 05:40:07 GMT Resent-Message-Id: <201208170540.q7H5e7Ok071134@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Radek Krejca Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7B3A4106564A for ; Fri, 17 Aug 2012 05:30:30 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 671618FC0A for ; Fri, 17 Aug 2012 05:30:30 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q7H5UUPi080479 for ; Fri, 17 Aug 2012 05:30:30 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q7H5UT4s080478; Fri, 17 Aug 2012 05:30:29 GMT (envelope-from nobody) Message-Id: <201208170530.q7H5UT4s080478@red.freebsd.org> Date: Fri, 17 Aug 2012 05:30:29 GMT From: Radek Krejca To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: docs/170691: Difference between zfs manpages and reality X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Aug 2012 05:40:07 -0000 >Number: 170691 >Category: docs >Synopsis: Difference between zfs manpages and reality >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Fri Aug 17 05:40:07 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Radek Krejca >Release: 9.0 >Organization: >Environment: FreeBSD radek.starnet.cz 9.0-RELEASE-p4 FreeBSD 9.0-RELEASE-p4 #2: Sat Aug 11 17:48:50 CEST 2012 root@radek.starnet.cz:/usr/obj/usr/src/sys/GENERIC amd64 >Description: There is difference in man page of zfs and reality. In examples of manpage zfs if this construction: Example 17 Setting sharenfs Property Options on a ZFS File System The following commands show how to set sharenfs property options to enable rw access for a set of IP addresses and to enable root access for system neo on the tank/home file system. # # zfs set sharenfs='rw=@123.123.0.0/16,root=neo' tank/home But it doesnt work, this construction is working from command line, but gives bad export line in messagess log: command zfs set sharenfs=rw=@pokus.starnet.cz,root=0 storage/pokus Aug 14 12:26:48 storage mountd[1181]: bad exports list line /usr/local/storage/pokus rw=@pokus.starnet.cz root=0 >How-To-Repeat: Use example from manpage zfs set sharenfs=rw=@pokus.starnet.cz,root=0 storage/pokus >Fix: I found od internet this page: http://tuxnetworks.blogspot.cz/2011/11/using-zfs-on-freebsd-9.html and there is working syntax zfs sharenfs="-maproot=0:0 pokus.starnet.cz" storage/pokus You can read manpage exports, there is other options which you can use. >Release-Note: >Audit-Trail: >Unformatted: