summaryrefslogtreecommitdiff
path: root/usr/src/lib/libzfs/common/libzfs_impl.h
diff options
context:
space:
mode:
authordougm <none@none>2007-05-07 16:12:42 -0700
committerdougm <none@none>2007-05-07 16:12:42 -0700
commit6733190958bbcc0bd6d1d601e7ae0a6994dafb45 (patch)
tree10f31ce7e31ce61f8bdc6b0b454cf9865af6792e /usr/src/lib/libzfs/common/libzfs_impl.h
parentafc7d54587eb70585fcc35b5f933cc1ed713d87a (diff)
downloadillumos-joyent-6733190958bbcc0bd6d1d601e7ae0a6994dafb45.tar.gz
6491973 sharemgr: zfs set sharenfs=on is slow with lots of zfs filesystems
Diffstat (limited to 'usr/src/lib/libzfs/common/libzfs_impl.h')
-rw-r--r--usr/src/lib/libzfs/common/libzfs_impl.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/usr/src/lib/libzfs/common/libzfs_impl.h b/usr/src/lib/libzfs/common/libzfs_impl.h
index 4bd66994bf..b6a1e59e9d 100644
--- a/usr/src/lib/libzfs/common/libzfs_impl.h
+++ b/usr/src/lib/libzfs/common/libzfs_impl.h
@@ -37,6 +37,7 @@
#include <libuutil.h>
#include <libzfs.h>
+#include <libshare.h>
#ifdef __cplusplus
extern "C" {
@@ -54,6 +55,7 @@ struct libzfs_handle {
char libzfs_action[1024];
char libzfs_desc[1024];
int libzfs_printerr;
+ void *libzfs_sharehdl; /* libshare handle */
};
struct zfs_handle {
@@ -140,6 +142,14 @@ int zpool_iter_zvol(zpool_handle_t *, int (*)(const char *, void *), void *);
void namespace_clear(libzfs_handle_t *);
+/*
+ * libshare (sharemgr) interfaces used internally.
+ */
+
+extern int zfs_init_libshare(libzfs_handle_t *, int);
+extern void zfs_uninit_libshare(libzfs_handle_t *);
+extern int zfs_parse_options(char *, char *);
+
#ifdef __cplusplus
}
#endif