]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - support/include/exportfs.h
Make warning about host matching multiple exports more helpful.
[nfs-utils.git] / support / include / exportfs.h
index dfd51f2dcac4d906f48ffcfa88997511d3e7ab08..431b5ce7701c0036668d8a61b31367f7b654c44f 100644 (file)
@@ -19,9 +19,17 @@ enum {
        MCL_WILDCARD,
        MCL_NETGROUP,
        MCL_ANONYMOUS,
+       MCL_GSS,
        MCL_MAXTYPES
 };
 
+enum {
+       FSLOC_NONE = 0,
+       FSLOC_REFER,
+       FSLOC_REPLICA,
+       FSLOC_STUB
+};
+
 typedef struct mclient {
        struct mclient *        m_next;
        char                    m_hostname[NFSCLNT_IDMAX+1];
@@ -39,7 +47,9 @@ typedef struct mexport {
        int                     m_exported;     /* known to knfsd. -1 means not sure */
        int                     m_xtabent  : 1, /* xtab entry exists */
                                m_mayexport: 1, /* derived from xtabbed */
-                               m_changed  : 1; /* options (may) have changed */
+                               m_changed  : 1, /* options (may) have changed */
+                               m_warned   : 1; /* warned about multiple exports
+                                                * matching one client */
 } nfs_export;
 
 extern nfs_client *            clientlist[MCL_MAXTYPES];
@@ -62,7 +72,7 @@ void                          export_add(nfs_export *);
 void                           export_reset(nfs_export *);
 nfs_export *                   export_lookup(char *hname, char *path, int caconical);
 nfs_export *                   export_find(struct hostent *, char *path);
-struct exportent *             export_allowed(struct hostent *, char *path);
+nfs_export *                   export_allowed(struct hostent *, char *path);
 nfs_export *                   export_create(struct exportent *, int canonical);
 nfs_export *                   export_dup(nfs_export *, struct hostent *);
 void                           export_freeall(void);