aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libshare/nfs.h
diff options
context:
space:
mode:
authorнаб <[email protected]>2021-04-16 00:40:22 +0200
committerBrian Behlendorf <[email protected]>2021-04-19 09:07:09 -0700
commitdc3a56d38bf300cf15f13d5bd4b116ec387c60e0 (patch)
treed10c280214d53bfdf776eee04f1de78a028e9d8e /lib/libshare/nfs.h
parent62866fc96cab95516cd9625839da6a75599b7931 (diff)
libshare: nfs: commonify nfs_enable_share()
Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: George Wilson <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes #11886
Diffstat (limited to 'lib/libshare/nfs.h')
-rw-r--r--lib/libshare/nfs.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/lib/libshare/nfs.h b/lib/libshare/nfs.h
index 9eca798db..4dbcdf598 100644
--- a/lib/libshare/nfs.h
+++ b/lib/libshare/nfs.h
@@ -30,12 +30,7 @@
void libshare_nfs_init(void);
-int nfs_exports_lock(const char *name);
-void nfs_exports_unlock(const char *name);
-
-char *nfs_init_tmpfile(const char *prefix, const char *mdir);
-int nfs_fini_tmpfile(const char *exports, char *tmpfile);
-
int nfs_copy_entries(char *filename, const char *mountpoint);
-int nfs_disable_share_impl(const char *lockfile, const char *exports,
- const char *expdir, 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,
+ int(*cbk)(sa_share_impl_t impl_share, char *filename));