from Rick Macklem for diskless support
authorKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Tue, 5 Mar 1991 14:02:13 +0000 (06:02 -0800)
committerKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Tue, 5 Mar 1991 14:02:13 +0000 (06:02 -0800)
SCCS-vsn: sys/nfs/nfsdiskless.h 7.1

usr/src/sys/nfs/nfsdiskless.h [new file with mode: 0644]

diff --git a/usr/src/sys/nfs/nfsdiskless.h b/usr/src/sys/nfs/nfsdiskless.h
new file mode 100644 (file)
index 0000000..4acdf54
--- /dev/null
@@ -0,0 +1,32 @@
+/*
+ * Copyright (c) 1991 The Regents of the University of California.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to Berkeley by
+ * Rick Macklem at The University of Guelph.
+ *
+ * %sccs.include.redist.c%
+ *
+ *     @(#)nfsdiskless.h       7.1 (Berkeley) %G%
+ */
+
+/*
+ * Structure that must be initialized for a diskless nfs client.
+ * This structure is used by nfs_mountroot() to set up the root and swap
+ * vnodes plus do a partial ifconfig(8) and route(8) so that the critical net
+ * interface can communicate with the server.
+ * For now it is statically initialized in swapvmunix.c, but someday a primary
+ * bootstrap should fill it in.
+ */
+struct nfs_diskless {
+       struct ifaliasreq myif;         /* Info. for partial ifconfig */
+       struct sockaddr mygateway;      /* Default gateway for "route add" */
+       struct nfs_args swap_args;      /* Mount args for swap file */
+       u_char          swap_fh[NFS_FHSIZE]; /* Swap file's file handle */
+       struct sockaddr swap_saddr;     /* Address of swap server */
+       char            *swap_hostnam;  /* Host name for mount pt */
+       struct nfs_args root_args;      /* Mount args for root fs */
+       u_char          root_fh[NFS_FHSIZE]; /* File handle of root dir */
+       struct sockaddr root_saddr;     /* Address of root server */
+       char            *root_hostnam;  /* Host name for mount pt */
+};