]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
nfsd: Fix f_bavail and f_ffree for NFSv4 when negative
authorRick Macklem <rmacklem@FreeBSD.org>
Mon, 8 Nov 2021 20:59:31 +0000 (12:59 -0800)
committerRick Macklem <rmacklem@FreeBSD.org>
Mon, 8 Nov 2021 20:59:31 +0000 (12:59 -0800)
commitd70ca5b00eede3367ce659a03b2f9cc9729cd0dd
tree9c1134e4806324a93ae6ffd4fcb6462f78a2ef19
parentb826cc3caf6abc6a5d1926bd478b464938d45697
nfsd: Fix f_bavail and f_ffree for NFSv4 when negative

Since the NFS Space_available and Files_available are unsigned,
the NFSv3 server sets them to 0 when negative, so that they
do not appear to be large positive values for non-FreeBSD clients.
This patch fixes the NFSv4 server to do the same.

Found during a recent IEFT NFSv4 working group testing event.

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