X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=support%2Finclude%2Fexportfs.h;h=458611b8f5ac3d3b0056c056b08079bd0040b965;hb=7d668dbaa15287ea5aafb79059fd407178759e78;hp=deb837c87c5b4bf9c7b7d23c5f7f6417c22bb4b7;hpb=37e49789ab1cd849def25ba4c4d97ccdb11d1e61;p=nfs-utils.git diff --git a/support/include/exportfs.h b/support/include/exportfs.h index deb837c..458611b 100644 --- a/support/include/exportfs.h +++ b/support/include/exportfs.h @@ -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]; @@ -54,13 +62,15 @@ int client_check(nfs_client *, struct hostent *); int client_match(nfs_client *, char *hname); void client_release(nfs_client *); void client_freeall(void); +char * client_compose(struct in_addr addr); +int client_member(char *client, char *name); int 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(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); @@ -77,4 +87,7 @@ int rmtab_read(void); struct nfskey * key_lookup(char *hname); +/* Record export error. */ +extern int export_errno; + #endif /* EXPORTFS_H */