Implemented sharing datasets via SMB using libshare

Add the initial support for the 'smbshare' option using the
existing libshare infrastructure.  Because this implementation
relies on usershares samba version 3.0.23 is required.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #493
This commit is contained in:
Turbo Fredriksson
2012-02-04 21:08:53 +01:00
committed by Brian Behlendorf
parent 4588bf5701
commit 645fb9cc21
9 changed files with 731 additions and 13 deletions
+3 -2
View File
@@ -516,7 +516,7 @@ nfs_validate_shareopts(const char *shareopts)
* Checks whether a share is currently active.
*/
static boolean_t
is_share_active(sa_share_impl_t impl_share)
nfs_is_share_active(sa_share_impl_t impl_share)
{
char line[512];
char *tab, *cur;
@@ -587,7 +587,8 @@ nfs_update_shareopts(sa_share_impl_t impl_share, const char *resource,
boolean_t needs_reshare = B_FALSE;
char *old_shareopts;
FSINFO(impl_share, nfs_fstype)->active = is_share_active(impl_share);
FSINFO(impl_share, nfs_fstype)->active =
nfs_is_share_active(impl_share);
old_shareopts = FSINFO(impl_share, nfs_fstype)->shareopts;