📄 nfs_clnt.h
字号:
/* @(#)nfs_clnt.h 4.4 (ULTRIX) 2/28/91 *//************************************************************************ * * * Copyright (c) 1986, 1987 by * * Digital Equipment Corporation, Maynard, MA * * All rights reserved. * * * * This software is furnished under a license and may be used and * * copied only in accordance with the terms of such license and * * with the inclusion of the above copyright notice. This * * software or any other copies thereof may not be provided or * * otherwise made available to any other person. No title to and * * ownership of the software is hereby transferred. * * * * This software is derived from software received from the * * University of California, Berkeley, and from Bell * * Laboratories. Use, duplication, or disclosure is subject to * * restrictions under license agreements with University of * * California and with AT&T. * * * * The information in this software is subject to change without * * notice and should not be construed as a commitment by Digital * * Equipment Corporation. * * * * Digital assumes no responsibility for the use or reliability * * of its software on equipment which is not supplied by Digital. * * * ************************************************************************//* * Portions of this software have been licensed to * Digital Equipment Company, Maynard, MA. * Copyright (c) 1986 Sun Microsystems, Inc. ALL RIGHTS RESERVED. *//* * 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#define MNTMAXSTR 128/* * 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 */ u_int mi_int : 1; /* interrupts allowed on hard mount */ u_int mi_down : 1; /* server is down */ u_int mi_noac: 1; /* no attributes caching */ 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 */ int mi_acregmin; /* min seconds for file attr cache */ int mi_acregmax; /* max seconds for file attr cache */ int mi_acdirmin; /* min seconds for dir caching */ int mi_acdirmax; /* max seconds for dir caching */ char mi_hostname[HOSTNAMESZ + 1]; /* server name */ char mi_optstr[MNTMAXSTR + 1]; /* mount options */};/* * enum to specifiy cache flushing action when file data is stale */enum staleflush {NOFLUSH, SFLUSH};/* * NFS client side booleans *//* used for argument to nfsread() and nfswrite() */#define NFS_BLOCKIO 1 /* read/write on behalf of buffer cache */#define NFS_NOT_BLOCKIO 0 /* " not on " */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -