]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix the setting of atime for Linux client NFSv4 mounts.
authorRick Macklem <rmacklem@FreeBSD.org>
Fri, 21 Apr 2017 00:17:47 +0000 (00:17 +0000)
committerRick Macklem <rmacklem@FreeBSD.org>
Fri, 21 Apr 2017 00:17:47 +0000 (00:17 +0000)
commitdedec68c32bd1cb338c824499495f15a29c27b67
tree9528be31665061eef016013e699f4dd745667c2d
parent47e222432b8c2939be0d92c64418b2355cea2c5a
Fix the setting of atime for Linux client NFSv4 mounts.

The FreeBSD NFSv4 server did not set the attribute bit for TimeAccess in
the reply to an Open with exclusive_create, as required by the RFCs.
(This is required since the FreeBSD NFS server stores the create_verifier
 in the va_atime attribute.)
As such, the Linux NFSv4 client did not set the TimeAccess (atime) in
the Setattr done in an RPC after the one with the Open/exclusive_create.
This patch fixes the server to set the TimeAccess bit in the reply.

I believe that storing the create_verifier in an extended attribute for
file systems that support extended attributes might be a good idea,
but I will wait for a discussion of this on the freebsd-fs@ email list
before considering committing a patch to do this.

Reported by: jim@ks.uiuc.edu
Suggested by: dfr
MFC after: 2 weeks
sys/fs/nfsserver/nfs_nfsdport.c