summaryrefslogtreecommitdiffstats
path: root/support/reexport/reexport.h
diff options
context:
space:
mode:
Diffstat (limited to 'support/reexport/reexport.h')
-rw-r--r--support/reexport/reexport.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/support/reexport/reexport.h b/support/reexport/reexport.h
new file mode 100644
index 0000000..85fd59c
--- /dev/null
+++ b/support/reexport/reexport.h
@@ -0,0 +1,20 @@
+#ifndef REEXPORT_H
+#define REEXPORT_H
+
+#include "nfslib.h"
+
+enum {
+ REEXP_NONE = 0,
+ REEXP_AUTO_FSIDNUM,
+ REEXP_PREDEFINED_FSIDNUM,
+};
+
+int reexpdb_init(void);
+void reexpdb_destroy(void);
+int reexpdb_fsidnum_by_path(char *path, uint32_t *fsidnum, int may_create);
+int reexpdb_apply_reexport_settings(struct exportent *ep, char *flname, int flline);
+void reexpdb_uncover_subvolume(uint32_t fsidnum);
+
+#define FSID_SOCKET_NAME "@/run/fsid.sock"
+
+#endif /* REEXPORT_H */