summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrmacklem <rmacklem@FreeBSD.org>2012-12-09 22:23:50 +0000
committerrmacklem <rmacklem@FreeBSD.org>2012-12-09 22:23:50 +0000
commit1c6e1dc79b25157b90e943742dc9339b0e3fe9d9 (patch)
treef840181dac5e38774e3ae2a1e7b907af23d28251
parent93c63cbc5ffea154731bbf88f4cdb1f6b2e48293 (diff)
downloadFreeBSD-src-1c6e1dc79b25157b90e943742dc9339b0e3fe9d9.zip
FreeBSD-src-1c6e1dc79b25157b90e943742dc9339b0e3fe9d9.tar.gz
Add "nfsstat -m" support for the two new NFS mount options
added by r244042.
-rw-r--r--sys/fs/nfsclient/nfs_clvfsops.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/fs/nfsclient/nfs_clvfsops.c b/sys/fs/nfsclient/nfs_clvfsops.c
index 00dbf90..83ce3cb 100644
--- a/sys/fs/nfsclient/nfs_clvfsops.c
+++ b/sys/fs/nfsclient/nfs_clvfsops.c
@@ -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,
OpenPOWER on IntegriCloud