]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Set initial values for nfsstatfs in the NFSv4 client.
authorrmacklem <rmacklem@FreeBSD.org>
Mon, 10 Apr 2017 21:49:35 +0000 (21:49 +0000)
committerrmacklem <rmacklem@FreeBSD.org>
Mon, 10 Apr 2017 21:49:35 +0000 (21:49 +0000)
commit0fa5dd45e34f42326028b4c5a5b6994c50c28f30
tree34d6d10986b99277345c13aa22584fe41489cdcf
parent290f3b9bc0f0b6493aa17fbbb8912469d87049c6
Set initial values for nfsstatfs in the NFSv4 client.

The AmazonEFS NFSv4.1 server does not support the FILES_FREE and FILES_TOTAL
attributes. As such, an NFSv4.1 mount to the server would return garbage
for these values. This patch initializes the fields of the nfsstatfs structure,
so that "df" and friends will at least return consistent bogus values.
This patch should have effect when mounting other NFSv4.1 servers.

Reported by: cperciva
MFC after: 2 weeks
sys/fs/nfs/nfs_commonsubs.c