summaryrefslogtreecommitdiff
path: root/nfs/nfs.h
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1996-08-15 19:50:20 +0000
committerThomas Bushnell <thomas@gnu.org>1996-08-15 19:50:20 +0000
commit823869e64ce6326ad59f62d4296ab2f6fdba0c89 (patch)
treee6e43a24492f951e2a94830f355e42446fa2cfce /nfs/nfs.h
parente4a33783b9ff72a8dd9048b7a54646f0527aa9e9 (diff)
*** empty log message ***
Diffstat (limited to 'nfs/nfs.h')
-rw-r--r--nfs/nfs.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/nfs/nfs.h b/nfs/nfs.h
index 1996dfce..29fc8ccc 100644
--- a/nfs/nfs.h
+++ b/nfs/nfs.h
@@ -24,11 +24,20 @@ typedef int bool_t; /* Ick. */
#include <rpcsvc/nfs_prot.h>
#include <hurd/netfs.h>
+/* A file handle */
+struct fhandle
+{
+ size_t size;
+
+ /* Leave enough room for the biggest possible fhandle. */
+ char data[NFS3_FHSIZE];
+};
+
/* One of these exists for private data needed by the client for each
node. */
struct netnode
{
- char handle[NFS2_FHSIZE];
+ struct fhandle handle;
time_t stat_updated;
struct node *hnext, **hprevp;
@@ -155,7 +164,7 @@ int cred_has_uid (struct netcred *, uid_t);
int cred_has_gid (struct netcred *, gid_t);
/* nfs.c */
-int *xdr_encode_fhandle (int *, void *);
+int *xdr_encode_fhandle (int *, struct fhandle *);
int *xdr_encode_data (int *, char *, size_t);
int *xdr_encode_string (int *, char *);
int *xdr_encode_sattr_mode (int *, mode_t);
@@ -183,5 +192,5 @@ void timeout_service_thread (void);
void rpc_receive_thread (void);
/* cache.c */
-struct node *lookup_fhandle (void *);
-void recache_handle (struct node *, void *);
+int *lookup_fhandle (int *, struct node **);
+int *recache_handle (int *, struct node *);