[NFS] How to get information about the NFS version client and server have negotiated on the server side?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I have the following question. NFS client and server negotiate the version they
are going to use at the mount time. How can I get the info about their decision
on the server-side?

/proc/fs/nfs/exports gives me the list of currently active
exports, though not per-client:

# cat /proc/fs/nfs/exports 
# Version 1.1
# Path Client(Flags) # IPs
/export 172.16.179.0/22(rw,insecure,no_root_squash,async,wdelay,no_subtree_check,fsid=0)

/var/lib/nfs/rmtab file gives me the list of currently mounted clients, but
does not specify the version:

# cat /var/lib/nfs/rmtab 
172.16.179.131:/export:0x00000001


nfsstat (and corresponding /proc entry) does not help to, because there might
be multiple clients working with different protocol versions at the same time.
And I want to know what protocol is used by a specific one, while nfsstat gives
only aggregate statistics.

On the client I can easily conclude protocol version from the /proc/mounts entry.

My config: CentOS5, nfs-utils-1.0.9-40.el5, kernel-2.6.18-128.el5 

Any ideas? Thank you!

Vasily

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
NFS maillist  -  NFS@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/nfs
_______________________________________________
Please note that nfs@xxxxxxxxxxxxxxxxxxxxx is being discontinued.
Please subscribe to linux-nfs@xxxxxxxxxxxxxxx instead.
    http://vger.kernel.org/vger-lists.html#linux-nfs

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux