aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libshare/nfs.h
diff options
context:
space:
mode:
authorнаб <[email protected]>2022-02-28 14:50:28 +0100
committerBrian Behlendorf <[email protected]>2022-05-12 09:26:25 -0700
commit63ce6dd9886a6bf7b070fb353780b1b25f693c90 (patch)
tree33d7c2c505b49a38f0b6c2569b4ca95d131e1d70 /lib/libshare/nfs.h
parent4ccbb23971f6e8b41073509fb4934f1dd1ea1e7e (diff)
libshare: use AVL tree with static data, pass all data in arguments
This makes it so we don't leak a consistent 64 bytes anymore, makes the searches simpler and faster, removes /all allocations/ from the driver (quite trivially, since they were absolutely needless), and makes libshare thread-safe (except, maybe, linux/smb, but that only does pointer-width loads/stores so it's also mostly fine, except for leaking smb_shares) Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes #13165
Diffstat (limited to 'lib/libshare/nfs.h')
-rw-r--r--lib/libshare/nfs.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/libshare/nfs.h b/lib/libshare/nfs.h
index cfac274c3..777581625 100644
--- a/lib/libshare/nfs.h
+++ b/lib/libshare/nfs.h
@@ -28,8 +28,6 @@
#define FILE_HEADER "# !!! DO NOT EDIT THIS FILE MANUALLY !!!\n\n"
-void libshare_nfs_init(void);
-
boolean_t nfs_is_shared_impl(const char *exports, sa_share_impl_t impl_share);
int nfs_toggle_share(const char *lockfile, const char *exports,
const char *expdir, sa_share_impl_t impl_share,