]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Change the new NFS server so that it returns 0 when the f_bavail
authorrmacklem <rmacklem@FreeBSD.org>
Fri, 6 May 2011 01:29:14 +0000 (01:29 +0000)
committerrmacklem <rmacklem@FreeBSD.org>
Fri, 6 May 2011 01:29:14 +0000 (01:29 +0000)
commite4e59a6cee21f1c822331285e993f57317404cae
tree36cbd1c1161c523e53fdbf3d8d195166fc1a4bfc
parent2dd713ebf4fcfbbc0cd361668793fa76861d0fff
Change the new NFS server so that it returns 0 when the f_bavail
or f_ffree fields of "struct statfs" are negative, since the
values that go on the wire are unsigned and will appear to be
very large positive values otherwise. This makes the handling
of a negative f_bavail compatible with the old/regular NFS server.

MFC after: 2 weeks
sys/fs/nfsserver/nfs_nfsdport.c