From 823869e64ce6326ad59f62d4296ab2f6fdba0c89 Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Thu, 15 Aug 1996 19:50:20 +0000 Subject: *** empty log message *** --- nfs/nfs.h | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'nfs/nfs.h') 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 #include +/* 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 *); -- cgit v1.2.3