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