Skip to content

64bit time fixes

[email protected] linux-nfs 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 2 repliesIn review
  2. v12 patches 1 replySuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2nfs: Send atime and mtime as a 64bit valuefs/nfs/nfs4xdr.c+2 -42 replies
2/2nfsd: Decode and send 64bit time valuesfs/nfsd/nfs4xdr.c+5 -140 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] 64bit time fixes

From: Bryan Schumaker <[email protected]>

xfstests generic/258 attempts to set atime of a file to a value before the unix epoch by running touch -t 196001010101. I found that both the client and the server were zero-filling the first 32bits rather than sending the correct 64bit time value during a setattr. These patches fix this on both the client and the server.

Version 2:
- Cast time.tv_sec values to a s64 instead of a long for 32bit systems

Questions? Comments?

- Bryan

Bryan Schumaker (2):
nfs: Send atime and mtime as a 64bit value
nfsd: Decode and send 64bit time values

 fs/nfs/nfs4xdr.c  |  6 ++----
 fs/nfsd/nfs4xdr.c | 19 +++++--------------
 2 files changed, 7 insertions(+), 18 deletions(-)
Signature · 1 line
1.8.2.1