summaryrefslogtreecommitdiff
path: root/nfsd/xdr.c
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@gnu.org>2007-11-13 23:27:07 +0000
committerThomas Schwinge <tschwinge@gnu.org>2007-11-13 23:27:07 +0000
commit63ed56840692629ee9853b6ce349a9c1ca0c96e9 (patch)
treee3e9c9f915699579e370e587657f111a65182b65 /nfsd/xdr.c
parentada287b189c35ff3b4737af1e857179a7cc6fa49 (diff)
2007-11-13 Thomas Schwinge <tschwinge@gnu.org>
* ops.c (complete_setattr): Adapt to ``struct stat'' changes. * xdr.c (encode_fattr): Likewise.
Diffstat (limited to 'nfsd/xdr.c')
-rw-r--r--nfsd/xdr.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/nfsd/xdr.c b/nfsd/xdr.c
index 4c7c2a72..1ff77851 100644
--- a/nfsd/xdr.c
+++ b/nfsd/xdr.c
@@ -1,5 +1,7 @@
/* xdr.c - XDR packing and unpacking in nfsd.
- Copyright (C) 1996, 2002 Free Software Foundation, Inc.
+
+ Copyright (C) 1996, 2002, 2007 Free Software Foundation, Inc.
+
Written by Michael I. Bushnell, p/BSG.
This file is part of the GNU Hurd.
@@ -76,12 +78,12 @@ encode_fattr (int *p, struct stat *st, int version)
*(p++) = htonl (st->st_blocks);
*(p++) = htonl (st->st_fsid);
*(p++) = htonl (st->st_ino);
- *(p++) = htonl (st->st_atime);
- *(p++) = htonl (st->st_atime_usec);
- *(p++) = htonl (st->st_mtime);
- *(p++) = htonl (st->st_mtime_usec);
- *(p++) = htonl (st->st_ctime);
- *(p++) = htonl (st->st_ctime_usec);
+ *(p++) = htonl (st->st_atim.tv_sec);
+ *(p++) = htonl (st->st_atim.tv_nsec / 1000);
+ *(p++) = htonl (st->st_mtim.tv_sec);
+ *(p++) = htonl (st->st_mtim.tv_nsec / 1000);
+ *(p++) = htonl (st->st_ctim.tv_sec);
+ *(p++) = htonl (st->st_ctim.tv_nsec / 1000);
return p;
}