Add "nfsstat -m" support for the two new NFS mount options

added by r244042.
This commit is contained in:
Rick Macklem 2012-12-09 22:23:50 +00:00
parent 5e70ce7a7c
commit ef8f1261d2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=244056

View File

@ -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,