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