mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-26 04:07:45 +03:00
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:
committed by
Brian Behlendorf
parent
4588bf5701
commit
645fb9cc21
+3
-2
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user