aboutsummaryrefslogtreecommitdiff
path: root/fs/hostfs
diff options
context:
space:
mode:
authorAndreas Gruenbacher2015-05-09 00:37:57 +0200
committerJ. Bruce Fields2015-05-29 11:04:01 -0400
commitcc265089ce1b176dde963c74b53593446ee7f99a (patch)
treefd4e145aa70b1de6cc322e5c8122a8773047f8fa /fs/hostfs
parent43b0e7ea590b51052384ecedf4ad7c8d7898e8e7 (diff)
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/hostfs')
0 files changed, 0 insertions, 0 deletions