]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - support/include/exportfs.h
2002-01-02 Chip Salzenberg <chip@pobox.com>
[nfs-utils.git] / support / include / exportfs.h
index d440dc1ff4462a44b7c191f1cb701e3e18f6367b..deb837c87c5b4bf9c7b7d23c5f7f6417c22bb4b7 100644 (file)
@@ -36,8 +36,8 @@ typedef struct mexport {
        struct mexport *        m_next;
        struct mclient *        m_client;
        struct exportent        m_export;
-       int                     m_exported : 1, /* known to knfsd */
-                               m_xtabent  : 1, /* xtab entry exists */
+       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 */
 } nfs_export;
@@ -45,7 +45,7 @@ typedef struct mexport {
 extern nfs_client *            clientlist[MCL_MAXTYPES];
 extern nfs_export *            exportlist[MCL_MAXTYPES];
 
-nfs_client *                   client_lookup(char *hname);
+nfs_client *                   client_lookup(char *hname, int canonical);
 nfs_client *                   client_find(struct hostent *);
 void                           client_add(nfs_client *);
 nfs_client *                   client_dup(nfs_client *, struct hostent *);
@@ -58,10 +58,10 @@ void                                client_freeall(void);
 int                            export_read(char *fname);
 void                           export_add(nfs_export *);
 void                           export_reset(nfs_export *);
-nfs_export *                   export_lookup(char *hname, char *path);
+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_create(struct exportent *);
+nfs_export *                   export_create(struct exportent *, int canonical);
 nfs_export *                   export_dup(nfs_export *, struct hostent *);
 void                           export_freeall(void);
 int                            export_export(nfs_export *);