diff options
author | Turbo Fredriksson <[email protected]> | 2012-02-04 21:08:53 +0100 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2012-12-03 09:42:15 -0800 |
commit | 645fb9cc214c79c77378dd1e1fd2e3ef668bc848 (patch) | |
tree | 93522c296789b8ac16a572b0fbcf35f7d891c654 /lib/libshare/nfs.c | |
parent | 4588bf57017f5d2693cd7b3f763640fe8cfe5909 (diff) |
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 <[email protected]>
Closes #493
Diffstat (limited to 'lib/libshare/nfs.c')
-rw-r--r-- | lib/libshare/nfs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libshare/nfs.c b/lib/libshare/nfs.c index 53691ebe5..00ba0f621 100644 --- a/lib/libshare/nfs.c +++ b/lib/libshare/nfs.c @@ -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; |