~ubuntu-branches/ubuntu/lucid/nfs-utils/lucid

« back to all changes in this revision

Viewing changes to support/include/exportfs.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2009-06-06 01:19:54 UTC
  • mto: (12.1.24 karmic)
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: james.westby@ubuntu.com-20090606011954-ojnwbumhfwgivicw
Tags: upstream-1.2.0
ImportĀ upstreamĀ versionĀ 1.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
                                                 * matching one client */
53
53
} nfs_export;
54
54
 
 
55
#define HASH_TABLE_SIZE 1021
 
56
 
 
57
typedef struct _exp_hash_entry {
 
58
        nfs_export * p_first;
 
59
        nfs_export * p_last;
 
60
} exp_hash_entry;
 
61
 
 
62
typedef struct _exp_hash_table {
 
63
        nfs_export * p_head;
 
64
        exp_hash_entry entries[HASH_TABLE_SIZE];
 
65
} exp_hash_table;
 
66
 
 
67
extern exp_hash_table exportlist[MCL_MAXTYPES];
 
68
 
55
69
extern nfs_client *             clientlist[MCL_MAXTYPES];
56
 
extern nfs_export *             exportlist[MCL_MAXTYPES];
57
70
 
58
71
nfs_client *                    client_lookup(char *hname, int canonical);
59
72
nfs_client *                    client_find(struct hostent *);
69
82
int                             client_member(char *client, char *name);
70
83
 
71
84
int                             export_read(char *fname);
72
 
void                            export_add(nfs_export *);
 
85
void                    export_add(nfs_export *);
73
86
void                            export_reset(nfs_export *);
74
87
nfs_export *                    export_lookup(char *hname, char *path, int caconical);
75
88
nfs_export *                    export_find(struct hostent *, char *path);