]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: fix NFSv4 time_delta attribute
authorJ. Bruce Fields <bfields@redhat.com>
Wed, 25 Apr 2018 18:34:11 +0000 (14:34 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Sun, 17 Jun 2018 14:41:11 +0000 (10:41 -0400)
commitc5bbae3a1ca46cb0234f3821a53beedbef67b0de
tree9b8bf154e464cc93a9ae085fbeb7c80437317de1
parente333f32796ef1b5864e8a8e391dd133cd01f05ec
nfsd: fix NFSv4 time_delta attribute

Currently we return the worst-case value of 1 second in the time delta
attribute.  That's not terribly useful.  Instead, return a value
calculated from the time granularity supported by the filesystem and the
system clock.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4xdr.c