summaryrefslogtreecommitdiff
path: root/nfs
diff options
context:
space:
mode:
Diffstat (limited to 'nfs')
-rw-r--r--nfs/nfs.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/nfs/nfs.c b/nfs/nfs.c
index 23ef1d32..c898b285 100644
--- a/nfs/nfs.c
+++ b/nfs/nfs.c
@@ -108,6 +108,22 @@ xdr_encode_sattr_times (int *p, struct timespec *atime, struct timespec *mtime)
return p;
}
+inline int *
+xdr_encode_create_state (int *p,
+ mode_t mode)
+{
+ *p++ = mode;
+ *p++ = -1; /* uid */
+ *p++ = -1; /* gid */
+ *p++ = 0; /* size */
+ *p++ = -1; /* atime sec */
+ *p++ = -1; /* atime usec */
+ *p++ = -1; /* mtime sec */
+ *p++ = -1; /* mtime usec */
+ return p
+}
+
+
/* Decode *P into a stat structure; return the address of the
following data. */
int *
@@ -142,4 +158,3 @@ xdr_decode_fattr (int *p, struct stat *st)
return p;
}
-