Date: Tue, 24 Mar 1998 09:43:20 -0800 (PST) From: David Wolfskill <dhw@whistle.com> To: freebsd-questions@FreeBSD.ORG Subject: How to determine NFS V2 vs NFS V3? Message-ID: <199803241743.JAA15507@pau-amma.whistle.com>
next in thread | raw e-mail | index | archive | help
I've been trying to utilize local resources first... then started to write some code to find out, but got stuck trying to find a pointer to the struct that contains the NFSV3 flag. :-( Anyway: in order to track down potential causes of a problem I've been experiencing (in FreeBSD-2.2.5-RELEASE, as well as -2.2.6-BETA), I would like to have a way to determine (empirically, as opposed to looking at various specifications & concluding that "it must be X, because that's what was specified") which version of the NFS protocol is being used. The NFSMNT_NFSV3 flag shows this (on a per-mount basis), and is one of the "NFS mount option flags" (presumably, in the "flags" field of the struct nfs_args in sys/mount.h). However, I see neither a (canned) program to display such stuff, nor a pointer to such a struct that I can get to from a known location. Getting to the struct statfs is easy (getmntinfo(3) does that), but I have no confidence that the "copy of mount flags" field there is (a copy of) the field in question (and I confess that I could probably look it up, but that would still take quite a while before I could be reasonably confident enough of what's going on to be able to proceed). Help? Thanks, david -- David Wolfskill dhw@whistle.com (650) 577-7158 pager: (650) 401-0168 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199803241743.JAA15507>