summaryrefslogtreecommitdiffstats
path: root/sys/nfsclient/nfsdiskless.h
diff options
context:
space:
mode:
authortegge <tegge@FreeBSD.org>1997-05-12 19:02:56 +0000
committertegge <tegge@FreeBSD.org>1997-05-12 19:02:56 +0000
commit642b91a41a9edbfff185a5f1f100816f7dc5f7d9 (patch)
tree06d6e3aa9e68d7317bf8a6fd79dd02f6f359f939 /sys/nfsclient/nfsdiskless.h
parent901bd8b71be860fedc8429d292230c219d27103f (diff)
downloadFreeBSD-src-642b91a41a9edbfff185a5f1f100816f7dc5f7d9.zip
FreeBSD-src-642b91a41a9edbfff185a5f1f100816f7dc5f7d9.tar.gz
Use the old nfs arguments in the nfs_diskless structure, to be
compatible with boot proms made from the 2.2 source. Convert the nfs arguments when copying to the new diskless structure. Copy the gateway field in the diskless structure.
Diffstat (limited to 'sys/nfsclient/nfsdiskless.h')
-rw-r--r--sys/nfsclient/nfsdiskless.h29
1 files changed, 26 insertions, 3 deletions
diff --git a/sys/nfsclient/nfsdiskless.h b/sys/nfsclient/nfsdiskless.h
index 7f89173..2fcb0a0 100644
--- a/sys/nfsclient/nfsdiskless.h
+++ b/sys/nfsclient/nfsdiskless.h
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfsdiskless.h 8.2 (Berkeley) 3/30/95
- * $Id$
+ * $Id: nfsdiskless.h,v 1.8 1997/02/22 09:42:47 peter Exp $
*/
@@ -81,16 +81,39 @@ struct nfsv3_diskless {
char my_hostnam[MAXHOSTNAMELEN]; /* Client host name */
};
+/*
+ * Old arguments to mount NFS
+ */
+struct onfs_args {
+ struct sockaddr *addr; /* file server address */
+ int addrlen; /* length of address */
+ int sotype; /* Socket type */
+ int proto; /* and Protocol */
+ u_char *fh; /* File handle to be mounted */
+ int fhsize; /* Size, in bytes, of fh */
+ int flags; /* flags */
+ int wsize; /* write size in bytes */
+ int rsize; /* read size in bytes */
+ int readdirsize; /* readdir size in bytes */
+ int timeo; /* initial timeout in .1 secs */
+ int retrans; /* times to retry send */
+ int maxgrouplist; /* Max. size of group list */
+ int readahead; /* # of blocks to readahead */
+ int leaseterm; /* Term (sec) of lease */
+ int deadthresh; /* Retrans threshold */
+ char *hostname; /* server's name */
+};
+
struct nfs_diskless {
struct ifaliasreq myif; /* Default interface */
struct sockaddr_in mygateway; /* Default gateway */
- struct nfs_args swap_args; /* Mount args for swap file */
+ struct onfs_args swap_args; /* Mount args for swap file */
u_char swap_fh[NFSX_V2FH]; /* Swap file's file handle */
struct sockaddr_in swap_saddr; /* Address of swap server */
char swap_hostnam[MNAMELEN]; /* Host name for mount pt */
int swap_nblks; /* Size of server swap file */
struct ucred swap_ucred; /* Swap credentials */
- struct nfs_args root_args; /* Mount args for root fs */
+ struct onfs_args root_args; /* Mount args for root fs */
u_char root_fh[NFSX_V2FH]; /* File handle of root dir */
struct sockaddr_in root_saddr; /* Address of root server */
char root_hostnam[MNAMELEN]; /* Host name for mount pt */
OpenPOWER on IntegriCloud