Index: head/en_US.ISO8859-1/books/handbook/zfs/chapter.xml =================================================================== --- head/en_US.ISO8859-1/books/handbook/zfs/chapter.xml +++ head/en_US.ISO8859-1/books/handbook/zfs/chapter.xml @@ -1881,6 +1881,38 @@ 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 +