zfs/lib/libzfs
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
..
.gitignore Add a pkgconfig file 2014-08-28 07:59:43 -07:00
Makefile.am Multipath autoreplace, control enclosure LEDs, event rate limiting 2016-10-19 12:55:59 -07:00
libzfs.pc.in Add a pkgconfig file 2014-08-28 07:59:43 -07:00
libzfs_changelist.c Fix coverity defects: CID 147654, 147690 2016-10-13 14:02:07 -07:00
libzfs_config.c Fix indefinite article 2016-08-11 11:23:49 -07:00
libzfs_core.pc.in Add a pkgconfig file 2014-08-28 07:59:43 -07:00
libzfs_dataset.c Fix coverity defects: CID 147551, 147552 2016-10-20 11:49:50 -07:00
libzfs_diff.c Fix coverity defects: CID 147443, 147656, 147655, 147441, 147653 2016-09-29 13:33:09 -07:00
libzfs_fru.c cstyle: Resolve C style issues 2013-12-18 16:46:35 -08:00
libzfs_import.c Fix 'zpool import' detection issue 2016-11-14 09:40:18 -08:00
libzfs_iter.c Performance optimization of AVL tree comparator functions 2016-08-31 14:35:34 -07:00
libzfs_mount.c Allow zfs unshare <protocol> -a 2016-11-29 12:22:38 -07:00
libzfs_pool.c Allow for '-o feature@<feature>=disabled' on the command line 2016-10-25 16:17:47 -07:00
libzfs_sendrecv.c Fix coverity defects: CID 147575, 147577, 147578, 147579 2016-11-07 14:54:32 -08:00
libzfs_status.c Read spl_hostid module parameter before gethostid() 2015-02-04 16:44:53 -08:00
libzfs_util.c Fix 'zpool import' detection issues 2016-11-07 10:28:57 -08:00