]> git.baikalelectronics.ru Git - kernel.git/commit
nfs: Send atime and mtime as a 64bit value
authorBryan Schumaker <bjschuma@netapp.com>
Fri, 19 Apr 2013 20:09:37 +0000 (16:09 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 19 Apr 2013 21:21:07 +0000 (17:21 -0400)
commitab60087ab81b4d236953e02b8ddd5a28f40537a3
treea08f9ffb86378ebf11609f6fbb2868caabd81c54
parent9d342b1aefc30295c7a2b150187981d039efeb54
nfs: Send atime and mtime as a 64bit value

RFC 3530 says that the seconds value of a nfstime4 structure is a 64bit
value, but we are instead sending a 32-bit 0 and then a 32bit conversion
of the 64bit Linux value.  This means that if we try to set atime to a
value before the epoch (touch -t 196001010101) the client will only send
part of the new value due to lost precision.

Signed-off-by: Bryan Schumaker <bjschuma@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4xdr.c