HomeFreeBSD

nfsd: Fix f_bavail and f_ffree for NFSv4 when negative

Description

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.

(cherry picked from commit d70ca5b00eede3367ce659a03b2f9cc9729cd0dd)

Details

Provenance
rmacklemAuthored on Nov 8 2021, 8:59 PM
Parents
rG92b40444d07a: MFC: rc.d/rctl: unbreak for distinct /usr filesystem
Branches
Unknown
Tags
Unknown