From 44748ca84b05a1cc8651be23e692af7e017405a0 Mon Sep 17 00:00:00 2001 From: Sevan Janiyan Date: Fri, 18 Aug 2017 19:31:46 +0000 Subject: [PATCH] Add get/set share properties subsection to handbook's ZFS chapter. PR: 211022 Submitted by: Dan Bright Reviewed by: allanjude Approved by: bcr (mentor) Differential Revision: https://reviews.freebsd.org/D12009 --- .../books/handbook/zfs/chapter.xml | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/en_US.ISO8859-1/books/handbook/zfs/chapter.xml b/en_US.ISO8859-1/books/handbook/zfs/chapter.xml index 7205add56e..5b6ab9e85e 100644 --- a/en_US.ISO8859-1/books/handbook/zfs/chapter.xml +++ b/en_US.ISO8859-1/books/handbook/zfs/chapter.xml @@ -1881,6 +1881,38 @@ NAME PROPERTY VALUE SOURCE tank custom:costcenter - - &prompt.root; zfs get all tank | grep custom:costcenter &prompt.root; + + + Getting and Setting Share Properties + + Two commonly used and useful dataset properties are the + NFS and SMB share options. + Setting these define if and how ZFS datasets + may be shared on the network. At present, only setting sharing + via NFS is supported on &os;. To get the + current status of a share, enter: + + &prompt.root; zfs get sharenfs mypool/usr/home + NAME PROPERTY VALUE SOURCE + mypool/usr/home sharenfs on local + + &prompt.root; zfs get sharesmb mypool/usr/home + + NAME PROPERTY VALUE SOURCE + mypool/usr/home sharesmb off local + + To enable sharing of a dataset, enter: + + &prompt.root; zfs set sharenfs=on mypool/usr/home + + It is also possible to set additional options for sharing + datasets through NFS, such as + , and + . To set additional options to a + dataset shared through NFS, enter: + + &prompt.root; zfs set sharenfs="-alldirs,-maproot=root,-network=192.168.1.0/24 mypool/usr/home +