mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-24 19:28:53 +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
@@ -36,6 +36,7 @@
|
||||
#include <libshare.h>
|
||||
#include "libshare_impl.h"
|
||||
#include "nfs.h"
|
||||
#include "smb.h"
|
||||
|
||||
static sa_share_impl_t find_share(sa_handle_impl_t handle,
|
||||
const char *sharepath);
|
||||
@@ -103,6 +104,7 @@ __attribute__((constructor)) static void
|
||||
libshare_init(void)
|
||||
{
|
||||
libshare_nfs_init();
|
||||
libshare_smb_init();
|
||||
|
||||
/*
|
||||
* This bit causes /etc/dfs/sharetab to be updated before libzfs gets a
|
||||
|
||||
Reference in New Issue
Block a user