xref: /original-bsd/sys/nfs/nfsdiskless.h (revision 764d752b)
1 /*
2  * Copyright (c) 1991 The Regents of the University of California.
3  * 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  * %sccs.include.redist.c%
9  *
10  *	@(#)nfsdiskless.h	7.1 (Berkeley) 03/04/91
11  */
12 
13 /*
14  * Structure that must be initialized for a diskless nfs client.
15  * This structure is used by nfs_mountroot() to set up the root and swap
16  * vnodes plus do a partial ifconfig(8) and route(8) so that the critical net
17  * interface can communicate with the server.
18  * For now it is statically initialized in swapvmunix.c, but someday a primary
19  * bootstrap should fill it in.
20  */
21 struct nfs_diskless {
22 	struct ifaliasreq myif;		/* Info. for partial ifconfig */
23 	struct sockaddr	mygateway;	/* Default gateway for "route add" */
24 	struct nfs_args	swap_args;	/* Mount args for swap file */
25 	u_char		swap_fh[NFS_FHSIZE]; /* Swap file's file handle */
26 	struct sockaddr	swap_saddr;	/* Address of swap server */
27 	char		*swap_hostnam;	/* Host name for mount pt */
28 	struct nfs_args	root_args;	/* Mount args for root fs */
29 	u_char		root_fh[NFS_FHSIZE]; /* File handle of root dir */
30 	struct sockaddr	root_saddr;	/* Address of root server */
31 	char		*root_hostnam;	/* Host name for mount pt */
32 };
33