Deleted Added
full compact
nfs.h (32998) nfs.h (34961)
1/*
2 * Copyright (c) 1989, 1993, 1995
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Rick Macklem at The University of Guelph.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 20 unchanged lines hidden (view full) ---

29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 *
36 * @(#)nfs.h 8.4 (Berkeley) 5/1/95
1/*
2 * Copyright (c) 1989, 1993, 1995
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Rick Macklem at The University of Guelph.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 20 unchanged lines hidden (view full) ---

29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 *
36 * @(#)nfs.h 8.4 (Berkeley) 5/1/95
37 * $Id: nfs.h,v 1.32 1997/10/12 20:25:38 phk Exp $
37 * $Id: nfs.h,v 1.33 1998/02/01 21:23:29 bde Exp $
38 */
39
40#ifndef _NFS_NFS_H_
41#define _NFS_NFS_H_
42
43/*
44 * Tunable constants for nfs
45 */

--- 57 unchanged lines hidden (view full) ---

103#define IO_METASYNC 0
104#endif
105
106/*
107 * Set the attribute timeout based on how recently the file has been modified.
108 */
109#define NFS_ATTRTIMEO(np) \
110 ((((np)->n_flag & NMODIFIED) || \
38 */
39
40#ifndef _NFS_NFS_H_
41#define _NFS_NFS_H_
42
43/*
44 * Tunable constants for nfs
45 */

--- 57 unchanged lines hidden (view full) ---

103#define IO_METASYNC 0
104#endif
105
106/*
107 * Set the attribute timeout based on how recently the file has been modified.
108 */
109#define NFS_ATTRTIMEO(np) \
110 ((((np)->n_flag & NMODIFIED) || \
111 (time.tv_sec - (np)->n_mtime) / 10 < NFS_MINATTRTIMO) ? NFS_MINATTRTIMO : \
112 ((time.tv_sec - (np)->n_mtime) / 10 > NFS_MAXATTRTIMO ? NFS_MAXATTRTIMO : \
113 (time.tv_sec - (np)->n_mtime) / 10))
111 (time_second - (np)->n_mtime) / 10 < NFS_MINATTRTIMO) ? NFS_MINATTRTIMO : \
112 ((time_second - (np)->n_mtime) / 10 > NFS_MAXATTRTIMO ? NFS_MAXATTRTIMO : \
113 (time_second - (np)->n_mtime) / 10))
114
115/*
116 * Expected allocation sizes for major data structures. If the actual size
117 * of the structure exceeds these sizes, then malloc() will be allocating
118 * almost twice the memory required. This is used in nfs_init() to warn
119 * the sysadmin that the size of a structure should be reduced.
120 * (These sizes are always a power of 2. If the kernel malloc() changes
121 * to one that does not allocate space in powers of 2 size, then this all

--- 444 unchanged lines hidden (view full) ---

566 } while (0)
567
568#else
569
570#define NFS_DPF(cat, args)
571
572#endif
573
114
115/*
116 * Expected allocation sizes for major data structures. If the actual size
117 * of the structure exceeds these sizes, then malloc() will be allocating
118 * almost twice the memory required. This is used in nfs_init() to warn
119 * the sysadmin that the size of a structure should be reduced.
120 * (These sizes are always a power of 2. If the kernel malloc() changes
121 * to one that does not allocate space in powers of 2 size, then this all

--- 444 unchanged lines hidden (view full) ---

566 } while (0)
567
568#else
569
570#define NFS_DPF(cat, args)
571
572#endif
573
574u_quad_t nfs_curusec __P((void));
574int nfs_init __P((struct vfsconf *vfsp));
575int nfs_reply __P((struct nfsreq *));
576int nfs_getreq __P((struct nfsrv_descript *,struct nfsd *,int));
577int nfs_send __P((struct socket *, struct sockaddr *, struct mbuf *,
578 struct nfsreq *));
579int nfs_rephead __P((int, struct nfsrv_descript *, struct nfssvc_sock *,
580 int, int, u_quad_t *, struct mbuf **, struct mbuf **,
581 caddr_t *));

--- 135 unchanged lines hidden ---
575int nfs_init __P((struct vfsconf *vfsp));
576int nfs_reply __P((struct nfsreq *));
577int nfs_getreq __P((struct nfsrv_descript *,struct nfsd *,int));
578int nfs_send __P((struct socket *, struct sockaddr *, struct mbuf *,
579 struct nfsreq *));
580int nfs_rephead __P((int, struct nfsrv_descript *, struct nfssvc_sock *,
581 int, int, u_quad_t *, struct mbuf **, struct mbuf **,
582 caddr_t *));

--- 135 unchanged lines hidden ---