]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix the pNFS server's reporting of disk space usage for the "#<path>" case.
authorrmacklem <rmacklem@FreeBSD.org>
Tue, 9 Oct 2018 01:10:50 +0000 (01:10 +0000)
committerrmacklem <rmacklem@FreeBSD.org>
Tue, 9 Oct 2018 01:10:50 +0000 (01:10 +0000)
commita0aee6c7bd2fc6e972b9a9f4d332490b180789bf
treeaf40364385930c498cce232d6cb56590af0cc352
parenta7a648bfd735d07ae1e49708205ca201421aade9
Fix the pNFS server's reporting of disk space usage for the "#<path>" case.

The pNFS server would report the total disk space used and free for all
of the DSs, even when certain DSs are assigned to the file system via
the "#<path>" suffix used in the "nfsd -p" option argument.
This patch fixes this case. It only reports usage for the file system
that the argument vnode resides on. This is consistent with the non-pNFS
NFSv4 server. In NFSv4 it is possible to have subtrees on other file
systems, but these are not included in the usage information for NFSv4.

Approved by: re (gjb)
sys/fs/nfsserver/nfs_nfsdport.c