hi Matthew,

> I am poking around in nfs a little bit and I am curious as to where
> nfs stores what it mount on the mount point. I know that its kept
> somewhere because iostat can fish it out. Does it grab it as stored
> in NFS or in the mnttab?

I believe it uses a combination of the NFS mntinfo kstat, and the mnttab 
file.

Places to start looking are:

# get_pretty_name()
http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/cmd/stat/common/acquire_iodevs.c#539

# lookup_nfs_name()
http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/cmd/stat/common/dsr.c#511

does this help?

The common "snapshot" code in the above is called by vmstat, iostat & 
mpstat, e.g: iostat -> acquire_snapshot() -> acquire_iodevs() -> 
get_pretty_name() -> lookup_nfs_name()

cheers,
calum.


Reply via email to