freebsd-dev/lib/libshare
LOLi 2f71caf2d9 Allow zfs unshare <protocol> -a
Allow `zfs unshare <protocol> -a` command to share or unshare all datasets
of a given protocol, nfs or smb.

Additionally, enable most of ZFS Test Suite zfs_share/zfs_unshare test cases.
To work around some Illumos-specific functionalities ($SHARE/$UNSHARE) some
function wrappers were added around them.

Finally, fix and issue in smb_is_share_active() that would leave SMB shares
exported when invoking 'zfs unshare -a'

Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Turbo Fredriksson <turbo@bayour.com>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #3238 
Closes #5367
2016-11-29 12:22:38 -07:00
..
libshare_impl.h cstyle: Resolve C style issues 2013-12-18 16:46:35 -08:00
libshare.c Fix coverity defects: CID 147548 2016-10-31 16:56:10 -07:00
Makefile.am Support parallel build trees (VPATH builds) 2015-07-17 13:42:51 -07:00
nfs.c Fix coverity defects: CID 147511, 147513 2016-10-24 13:37:38 -07:00
nfs.h Implemented sharing datasets via NFS using libshare. 2011-07-06 09:20:28 -07:00
smb.c Allow zfs unshare <protocol> -a 2016-11-29 12:22:38 -07:00
smb.h cstyle: Resolve C style issues 2013-12-18 16:46:35 -08:00