summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/lockd.c
diff options
context:
space:
mode:
authorAndreas Gruenbacher <andreas.gruenbacher@gmail.com>2015-05-09 00:37:57 +0200
committerJ. Bruce Fields <bfields@redhat.com>2015-05-29 17:04:01 +0200
commitcc265089ce1b176dde963c74b53593446ee7f99a (patch)
treefd4e145aa70b1de6cc322e5c8122a8773047f8fa /fs/nfsd/lockd.c
parentnfsd: stop READDIRPLUS returning inconsistent attributes (diff)
downloadlinux-cc265089ce1b176dde963c74b53593446ee7f99a.tar.xz
linux-cc265089ce1b176dde963c74b53593446ee7f99a.zip
nfsd: Disable NFSv2 timestamp workaround for NFSv3+
NFSv2 can set the atime and/or mtime of a file to specific timestamps but not to the server's current time. To implement the equivalent of utimes("file", NULL), it uses a heuristic. NFSv3 and later do support setting the atime and/or mtime to the server's current time directly. The NFSv2 heuristic is still enabled, and causes timestamps to be set wrong sometimes. Fix this by moving the heuristic into the NFSv2 specific code. We can leave it out of the create code path: the owner can always set timestamps arbitrarily, and the workaround would never trigger. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/lockd.c')
0 files changed, 0 insertions, 0 deletions