4.3BSD-UWisc/include/nfs/nfs_clnt.h

Compare this file to the similar file:
Show the results in this format:

/*
 * RCS Info	
 *	$Header: nfs_clnt.h,v 3.1 86/10/22 14:54:44 tadl Exp $
 *	$Locker:  $
 */
/* NFSSRC @(#)nfs_clnt.h	2.1 86/04/11 */
/*      @(#)nfs_clnt.h 1.1 86/02/03 SMI      */

/*
 * vfs pointer to mount info
 */
#define	vftomi(vfsp)	((struct mntinfo *)((vfsp)->vfs_data))

/*
 * vnode pointer to mount info
 */
#define	vtomi(vp)	((struct mntinfo *)(((vp)->v_vfsp)->vfs_data))

/*
 * NFS vnode to server's block size
 */
#define	vtoblksz(vp)	(vtomi(vp)->mi_bsize)

#define		HOSTNAMESZ      32
/*
 * NFS private data per mounted file system
 */
struct mntinfo {
	struct sockaddr_in mi_addr;	/* server's address */
	struct vnode	*mi_rootvp;	/* root vnode */
        u_int            mi_hard : 1;   /* hard or soft mount */
        u_int            mi_printed : 1;/* not responding message printed */
	int		 mi_refct;	/* active vnodes for this vfs */
	long		 mi_tsize;	/* transfer size (bytes) */
	long		 mi_stsize;	/* server's max transfer size (bytes) */
	long		 mi_bsize;	/* server's disk block size */
	int		 mi_mntno;	/* kludge to set client rdev for stat*/
        int              mi_timeo;      /* inital timeout in 10th sec */
        int              mi_retrans;    /* times to retry request */
        char             mi_hostname[HOSTNAMESZ];       /* server name */
};

/*
 * enum to specifiy cache flushing action when file data is stale
 */
enum staleflush	{NOFLUSH, SFLUSH};