mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-14 06:12:01 +01:00
Add "nfsstat -m" support for the two new NFS mount options
added by r244042.
This commit is contained in:
parent
5e70ce7a7c
commit
ef8f1261d2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=244056
@ -1743,6 +1743,12 @@ void nfscl_retopts(struct nfsmount *nmp, char *buffer, size_t buflen)
|
||||
blen = buflen;
|
||||
nfscl_printopt(nmp, (nmp->nm_flag & NFSMNT_NFSV4) != 0, "nfsv4", &buf,
|
||||
&blen);
|
||||
if ((nmp->nm_flag & NFSMNT_NFSV4) != 0) {
|
||||
nfscl_printoptval(nmp, nmp->nm_minorvers, ",minorversion", &buf,
|
||||
&blen);
|
||||
nfscl_printopt(nmp, (nmp->nm_flag & NFSMNT_PNFS) != 0, ",pnfs",
|
||||
&buf, &blen);
|
||||
}
|
||||
nfscl_printopt(nmp, (nmp->nm_flag & NFSMNT_NFSV3) != 0, "nfsv3", &buf,
|
||||
&blen);
|
||||
nfscl_printopt(nmp, (nmp->nm_flag & (NFSMNT_NFSV3 | NFSMNT_NFSV4)) == 0,
|
||||
|
Loading…
Reference in New Issue
Block a user