X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=support%2Finclude%2Fexportfs.h;h=10f38c797d8fe2e2152c77b4a6e586ece12ac2fe;hp=3ca248e0ee4f86eed8a29e24aa1aa8d29742e8ef;hb=93407d94dd7d74a0f083bc43656151901f1c62b0;hpb=82d42dffa84fb884684f75769ca13668c5188a5e diff --git a/support/include/exportfs.h b/support/include/exportfs.h index 3ca248e..10f38c7 100644 --- a/support/include/exportfs.h +++ b/support/include/exportfs.h @@ -19,6 +19,7 @@ enum { MCL_WILDCARD, MCL_NETGROUP, MCL_ANONYMOUS, + MCL_GSS, MCL_MAXTYPES }; @@ -45,7 +46,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 *); @@ -54,14 +55,16 @@ 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); +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_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); int export_export(nfs_export *); @@ -77,4 +80,7 @@ int rmtab_read(void); struct nfskey * key_lookup(char *hname); +/* Record export error. */ +extern int export_errno; + #endif /* EXPORTFS_H */