K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2021-12-18T01:48:03.461542Z K 7 svn:log V 1025 nfsd: Fix Verify for attributes like FilesAvail When the Verify operation calls nfsv4_loadattr(), it provides the "struct statfs" information that can be used for doing a compare for FilesAvail, FilesFree, FilesTotal, SpaceAvail, SpaceFree and SpaceTotal. However, the code erroneously used the "struct nfsstatfs *" argument that is NULL. This patch fixes these cases to use the correct argument structure. For the case of FilesAvail, the code in nfsv4_fillattr() was factored out into a separate function called nfsv4_filesavail(), so that it can be called from nfsv4_loadattr() as well as nfsv4_fillattr(). In fact, most of the code in nfsv4_filesavail() is old OpenBSD code that does not build/run on FreeBSD, but I left it in place, in case it is of some use someday. I am not aware of any extant NFSv4 client that does Verify on these attributes. PR: 260176 (cherry picked from commit 2d90ef47141d3ea0f88b43a1b6daf08d68ba8aba) Git Hash: b386392ea909bff2d4b3c46d43ba9c1ee3217e42 Git Author: rmacklem@FreeBSD.org END