aboutsummaryrefslogtreecommitdiff
path: root/sys/nfs/nfsdiskless.h
diff options
context:
space:
mode:
authorTor Egge <tegge@FreeBSD.org>1997-05-12 19:02:56 +0000
committerTor Egge <tegge@FreeBSD.org>1997-05-12 19:02:56 +0000
commit6a5b05c67f020921af23669b2197e6c0b281d345 (patch)
treef056685b7bb8fffee649db1045e25cb3fa6226e7 /sys/nfs/nfsdiskless.h
parent50a48d7daeb10e479c355f5e1f309c635cb467ef (diff)
downloadsrc-6a5b05c67f020921af23669b2197e6c0b281d345.tar.gz
src-6a5b05c67f020921af23669b2197e6c0b281d345.zip
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.
Notes
Notes: svn path=/head/; revision=25755
Diffstat (limited to 'sys/nfs/nfsdiskless.h')
-rw-r--r--sys/nfs/nfsdiskless.h29
1 files changed, 26 insertions, 3 deletions
diff --git a/sys/nfs/nfsdiskless.h b/sys/nfs/nfsdiskless.h
index 7f8917302d1a..2fcb0a0d0365 100644
--- a/sys/nfs/nfsdiskless.h
+++ b/sys/nfs/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 */