libshare: nfs: commonify nfs_exports_[un]lock(), FILE_HEADER

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: George Wilson <gwilson@delphix.com>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #11886
This commit is contained in:
наб
2021-04-11 19:37:48 +02:00
committed by Brian Behlendorf
parent 0f4d83117a
commit a3d387b31d
5 changed files with 95 additions and 104 deletions
+5
View File
@@ -24,4 +24,9 @@
* Copyright (c) 2011 Gunnar Beutner
*/
#define FILE_HEADER "# !!! DO NOT EDIT THIS FILE MANUALLY !!!\n\n"
void libshare_nfs_init(void);
int nfs_exports_lock(const char *name);
void nfs_exports_unlock(const char *name);