[PATCH v2 0/2] 64bit time fixes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Bryan Schumaker <bjschuma@xxxxxxxxxx>


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(-)

-- 
1.8.2.1

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux