1*44630Smckusick /*
2*44630Smckusick  * $Id: misc-aix3.h,v 5.2 90/06/23 22:20:34 jsp Rel $
3*44630Smckusick  *
4*44630Smckusick  * Copyright (c) 1990 Jan-Simon Pendry
5*44630Smckusick  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
6*44630Smckusick  * Copyright (c) 1990 The Regents of the University of California.
7*44630Smckusick  * All rights reserved.
8*44630Smckusick  *
9*44630Smckusick  * This code is derived from software contributed to Berkeley by
10*44630Smckusick  * Jan-Simon Pendry at Imperial College, London.
11*44630Smckusick  *
12*44630Smckusick  * %sccs.include.redist.c%
13*44630Smckusick  *
14*44630Smckusick  *	@(#)misc-aix3.h	5.1 (Berkeley) 06/29/90
15*44630Smckusick  */
16*44630Smckusick 
17*44630Smckusick struct ufs_args {
18*44630Smckusick 	char	*fspec;				/* Block device */
19*44630Smckusick };
20*44630Smckusick 
21*44630Smckusick struct nfs_args {
22*44630Smckusick 	struct sockaddr_in	addr;		/* file server address */
23*44630Smckusick 	fhandle_t		fh;		/* File handle to be mounted */
24*44630Smckusick 	int			flags;		/* flags */
25*44630Smckusick 	int			wsize;		/* write size in bytes */
26*44630Smckusick 	int			rsize;		/* read size in bytes */
27*44630Smckusick 	int			timeo;		/* initial timeout in .1 secs */
28*44630Smckusick 	int			retrans;	/* times to retry send */
29*44630Smckusick 	char			*hostname;	/* server's hostname */
30*44630Smckusick 	int			acregmin;	/* attr cache file min secs */
31*44630Smckusick 	int			acregmax;	/* attr cache file max secs */
32*44630Smckusick 	int			acdirmin;	/* attr cache dir min secs */
33*44630Smckusick 	int			acdirmax;	/* attr cache dir max secs */
34*44630Smckusick 	char			*netname;	/* server's netname */
35*44630Smckusick 	int			biods;		/* number of BIODS */
36*44630Smckusick };
37*44630Smckusick 
38*44630Smckusick /*
39*44630Smckusick  * NFS mount option flags
40*44630Smckusick  */
41*44630Smckusick #define	MNTOPT_RO	"ro"	/* read only */
42*44630Smckusick #define	MNTOPT_RW	"rw"	/* read/write */
43*44630Smckusick #define	MNTOPT_SOFT	"soft"	/* soft mount */
44*44630Smckusick #define	MNTOPT_HARD	"hard"	/* hard mount */
45*44630Smckusick #define	MNTOPT_NOSUID	"nosuid"/* no set uid allowed */
46*44630Smckusick #define	MNTOPT_NOAUTO	"noauto"/* hide entry from mount -a */
47*44630Smckusick #define	MNTOPT_INTR	"intr"	/* allow interrupts on hard mount */
48*44630Smckusick #define MNTOPT_SECURE 	"secure"/* use secure RPC for NFS */
49*44630Smckusick #define MNTOPT_GRPID 	"grpid"	/* SysV-compatible group-id on create */
50*44630Smckusick #define MNTOPT_NOSUB	"nosub"  /* disallow mounts beneath this one */
51*44630Smckusick #define MNTOPT_MULTI	"multi"  /* Do multi-component lookup */
52*44630Smckusick #define MNTOPT_NOAC 	"noac"   /* don't cache attributes */
53*44630Smckusick 
54*44630Smckusick #define NFSMNT_SOFT	0x001	/* soft mount (hard is default) */
55*44630Smckusick #define NFSMNT_WSIZE	0x002	/* set write size */
56*44630Smckusick #define NFSMNT_RSIZE	0x004	/* set read size */
57*44630Smckusick #define NFSMNT_TIMEO	0x008	/* set initial timeout */
58*44630Smckusick #define NFSMNT_RETRANS	0x010	/* set number of request retrys */
59*44630Smckusick #define NFSMNT_HOSTNAME	0x020	/* set hostname for error printf */
60*44630Smckusick #define NFSMNT_INT	0x040	/* allow interrupts on hard mount */
61*44630Smckusick #define	NFSMNT_NOAC	0x080	/* don't cache attributes */
62*44630Smckusick #define	NFSMNT_ACREGMIN	0x0100	/* set min secs for file attr cache */
63*44630Smckusick #define	NFSMNT_ACREGMAX	0x0200	/* set max secs for file attr cache */
64*44630Smckusick #define	NFSMNT_ACDIRMIN	0x0400	/* set min secs for dir attr cache */
65*44630Smckusick #define	NFSMNT_ACDIRMAX	0x0800	/* set max secs for dir attr cache */
66*44630Smckusick #define NFSMNT_SECURE	0x1000	/* secure mount */
67*44630Smckusick #define NFSMNT_BIODS	0x10000	/* Number of biods for the file system */
68*44630Smckusick 
69*44630Smckusick #define DEF_BIODS	6
70