Displaying ZFS Share Information
Display the value of the file sharing properties by using zfs get
command. The following example shows how to display the share.nfs
property for a single file system:
$ zfs get share.nfs tank/sales
NAME PROPERTY VALUE SOURCE
tank/sales share.nfs on local
The following example shows how to display the share.nfs
property for descendent file systems:
$ zfs get -r share.nfs tank/sales
NAME PROPERTY VALUE SOURCE
tank/sales share.nfs on local
tank/sales% share.nfs on inherited from tank/sales
tank/sales/log share.nfs on inherited from tank/sales
tank/sales/log% share.nfs on inherited from tank/sales
The extended share property information is not available in the zfs get all
command syntax.
You can display specific details about NFS or SMB share information by using the following syntax:
$ zfs get share.nfs.all tank/sales
NAME PROPERTY VALUE SOURCE
tank/sales share.nfs.aclok off default
tank/sales share.nfs.anon default
tank/sales share.nfs.charset.* ... default
tank/sales share.nfs.cksum default
tank/sales share.nfs.index default
tank/sales share.nfs.log default
tank/sales share.nfs.noaclfab off default
tank/sales share.nfs.nosub off default
tank/sales share.nfs.nosuid off default
tank/sales share.nfs.public - -
tank/sales share.nfs.sec default
tank/sales share.nfs.sec.* ... default
Because there are many share properties, consider displaying the properties with a non-default value. For example:
$ zfs get -e -s local,received,inherited share.all tank/home
NAME PROPERTY VALUE SOURCE
tank/home share.auto off local
tank/home share.nfs on local
tank/home share.nfs.anon 99 local
tank/home share.protocols nfs local
tank/home share.smb.guestok on inherited from tank