From owner-freebsd-questions Tue Mar 24 09:44:19 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA27695 for freebsd-questions-outgoing; Tue, 24 Mar 1998 09:44:19 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from whistle.com (s205m131.whistle.com [207.76.205.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA27649 for ; Tue, 24 Mar 1998 09:44:14 -0800 (PST) (envelope-from dhw@whistle.com) Received: (from smap@localhost) by whistle.com (8.7.5/8.6.12) id JAA22719 for ; Tue, 24 Mar 1998 09:43:44 -0800 (PST) Received: from pau-amma.whistle.com(207.76.205.64) by whistle.com via smap (V1.3) id sma022717; Tue Mar 24 09:43:20 1998 Received: (from dhw@localhost) by pau-amma.whistle.com (8.8.7/8.8.7) id JAA15507 for freebsd-questions@freebsd.org; Tue, 24 Mar 1998 09:43:20 -0800 (PST) (envelope-from dhw) Date: Tue, 24 Mar 1998 09:43:20 -0800 (PST) From: David Wolfskill Message-Id: <199803241743.JAA15507@pau-amma.whistle.com> To: freebsd-questions@FreeBSD.ORG Subject: How to determine NFS V2 vs NFS V3? Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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