nfsd: Decode and send 64bit time values
authorBryan Schumaker <bjschuma@netapp.com>
Fri, 19 Apr 2013 20:09:38 +0000 (16:09 -0400)
committerBen Hutchings <ben@decadent.org.uk>
Mon, 13 May 2013 14:02:24 +0000 (15:02 +0100)
commit48cb5f069117a32220b09f1a7897d75ea51d221c
treef09039062cbac09521a080165993b5b69590468f
parent577e0ee41563bcdc776da7d84a65e1bac3c6a3eb
nfsd: Decode and send 64bit time values

commit bf8d909705e9d9bac31d9b8eac6734d2b51332a7 upstream.

The seconds field of an nfstime4 structure is 64bit, but we are assuming
that the first 32bits are zero-filled.  So if the client tries to set
atime to a value before the epoch (touch -t 196001010101), then the
server will save the wrong value on disk.

Signed-off-by: Bryan Schumaker <bjschuma@netapp.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
fs/nfsd/nfs4xdr.c