]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4: Add lease_time and lease_expired to 'nfs4:' line of mountstats
authorDave Wysochanski <dwysocha@redhat.com>
Fri, 17 May 2019 21:06:41 +0000 (17:06 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 6 Jul 2019 18:54:52 +0000 (14:54 -0400)
commit6cf94d025c43e8887174480aeb730d74769c40a6
tree18c8fda4b6b73d30b31a3797e1a94a0315f03409
parent606131668710001d285b102fbb8c00bee8d3b061
NFSv4: Add lease_time and lease_expired to 'nfs4:' line of mountstats

On the NFS client there is no low-impact way to determine the nfs4
lease time or whether the lease is expired, so add these to mountstats
with times displayed in seconds.

If the lease is not expired, display lease_expired=0. Otherwise,
display lease_expired=seconds_since_expired, similar to 'age:' line
in mountstats.

Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/super.c