summaryrefslogtreecommitdiff
path: root/nfs/nfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'nfs/nfs.c')
-rw-r--r--nfs/nfs.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/nfs/nfs.c b/nfs/nfs.c
index 5ccf7186..f71e82ca 100644
--- a/nfs/nfs.c
+++ b/nfs/nfs.c
@@ -371,6 +371,18 @@ xdr_decode_64bit (int *p, long long *n)
return p;
}
+/* Decode *P into an fhandle and look up the associated node. Return
+ the address of the following data. */
+int *
+xdr_decode_fhandle (int *p, struct node **npp)
+{
+ size_t len;
+
+ len = protocol_version == 2 ? NFS2_FHSIZE : ntohl (*p++);
+ lookup_fhandle (p, len, npp);
+ return p + len / sizeof (int);
+}
+
/* Decode *P into a stat structure; return the address of the
following data. */
int *