Matthew C Aycock wrote:
> 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?

However, if you were asking where filesystems in general store info as 
to what is mounted over a mount-point, then the obvious place is the 
v_vfsmountedhere pointer in the vnode corresponding to the mount point:

http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/common/sys/vnode.h#238

which points to the VFS structure for the filesystem mounted-on that 
mount-point.

Equally, the VFS structure has a pointer vfs_vnodecovered that points 
back to the vnode for the mount-point the filessystem is mounted over:

http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/common/sys/vfs.h#223

hope this helps.

cheers,
calum.

Reply via email to