From ef8f1261d23493b1cf9e4c251770df16362a02d6 Mon Sep 17 00:00:00 2001 From: Rick Macklem Date: Sun, 9 Dec 2012 22:23:50 +0000 Subject: [PATCH] Add "nfsstat -m" support for the two new NFS mount options added by r244042. --- sys/fs/nfsclient/nfs_clvfsops.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/fs/nfsclient/nfs_clvfsops.c b/sys/fs/nfsclient/nfs_clvfsops.c index 00dbf906174d..83ce3cbd7d51 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,