]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - support/include/exportfs.h
mountd: Add exportent_release()
[nfs-utils.git] / support / include / exportfs.h
index 8e548334e3c0ea7b79a2022a16f9f0c768d1f5da..5960febf2c997fbd5b6f4c9e50928b6e096d4365 100644 (file)
@@ -32,6 +32,10 @@ enum {
        FSLOC_STUB
 };
 
+#ifndef EXP_LOCKFILE
+#define EXP_LOCKFILE "/var/lib/nfs/export-lock"
+#endif
+
 typedef struct mclient {
        struct mclient *        m_next;
        char *                  m_hostname;
@@ -100,6 +104,7 @@ typedef struct mexport {
 } nfs_export;
 
 #define HASH_TABLE_SIZE 1021
+#define DEFAULT_TTL    (30 * 60)
 
 typedef struct _exp_hash_entry {
        nfs_export * p_first;
@@ -129,7 +134,6 @@ int                                 client_member(const char *client,
                                                const char *name);
 
 void                           export_read(char *fname);
-void                   export_add(nfs_export *);
 void                           export_reset(nfs_export *);
 nfs_export *                   export_lookup(char *hname, char *path, int caconical);
 nfs_export *                   export_find(const struct addrinfo *ai,
@@ -137,6 +141,7 @@ nfs_export *                        export_find(const struct addrinfo *ai,
 nfs_export *                   export_allowed(const struct addrinfo *ai,
                                                const char *path);
 nfs_export *                   export_create(struct exportent *, int canonical);
+void                           exportent_release(struct exportent *);
 void                           export_freeall(void);
 int                            export_export(nfs_export *);
 int                            export_unexport(nfs_export *);