diff options
author | Thomas Schwinge <tschwinge@gnu.org> | 2007-11-13 23:27:07 +0000 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gnu.org> | 2007-11-13 23:27:07 +0000 |
commit | 63ed56840692629ee9853b6ce349a9c1ca0c96e9 (patch) | |
tree | e3e9c9f915699579e370e587657f111a65182b65 /nfsd/xdr.c | |
parent | ada287b189c35ff3b4737af1e857179a7cc6fa49 (diff) | |
download | hurd-63ed56840692629ee9853b6ce349a9c1ca0c96e9.tar.gz hurd-63ed56840692629ee9853b6ce349a9c1ca0c96e9.tar.bz2 hurd-63ed56840692629ee9853b6ce349a9c1ca0c96e9.zip |
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.c | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -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; } |