nfsdiskless.h (50477) | nfsdiskless.h (83651) |
---|---|
1/* 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. 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 * Redistribution and use in source and binary forms, with or without --- 20 unchanged lines hidden (view full) --- 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * @(#)nfsdiskless.h 8.2 (Berkeley) 3/30/95 | 1/* 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. 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 * Redistribution and use in source and binary forms, with or without --- 20 unchanged lines hidden (view full) --- 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * @(#)nfsdiskless.h 8.2 (Berkeley) 3/30/95 |
37 * $FreeBSD: head/sys/nfsclient/nfsdiskless.h 50477 1999-08-28 01:08:13Z peter $ | 37 * $FreeBSD: head/sys/nfsclient/nfsdiskless.h 83651 2001-09-18 23:32:09Z peter $ |
38 */ 39 | 38 */ 39 |
40#ifndef _NFSCLIENT_NFSDISKLESS_H_ 41#define _NFSCLIENT_NFSDISKLESS_H_ |
|
40 | 42 |
41#ifndef _NFS_NFSDISKLESS_H_ 42#define _NFS_NFSDISKLESS_H_ 43 | |
44/* 45 * Structure that must be initialized for a diskless nfs client. 46 * This structure is used by nfs_mountroot() to set up the root vnode, 47 * and to do a partial ifconfig(8) and route(8) so that the critical net 48 * interface can communicate with the server. 49 * The primary bootstrap is expected to fill in the appropriate fields before 50 * starting the kernel. Whether or not the swap area is nfs mounted is 51 * determined by the value in swdevt[0]. (equal to NODEV --> swap over nfs) --- 64 unchanged lines hidden (view full) --- 116 struct onfs_args root_args; /* Mount args for root fs */ 117 u_char root_fh[NFSX_V2FH]; /* File handle of root dir */ 118 struct sockaddr_in root_saddr; /* Address of root server */ 119 char root_hostnam[MNAMELEN]; /* Host name for mount pt */ 120 long root_time; /* Timestamp of root fs */ 121 char my_hostnam[MAXHOSTNAMELEN]; /* Client host name */ 122}; 123 | 43/* 44 * Structure that must be initialized for a diskless nfs client. 45 * This structure is used by nfs_mountroot() to set up the root vnode, 46 * and to do a partial ifconfig(8) and route(8) so that the critical net 47 * interface can communicate with the server. 48 * The primary bootstrap is expected to fill in the appropriate fields before 49 * starting the kernel. Whether or not the swap area is nfs mounted is 50 * determined by the value in swdevt[0]. (equal to NODEV --> swap over nfs) --- 64 unchanged lines hidden (view full) --- 115 struct onfs_args root_args; /* Mount args for root fs */ 116 u_char root_fh[NFSX_V2FH]; /* File handle of root dir */ 117 struct sockaddr_in root_saddr; /* Address of root server */ 118 char root_hostnam[MNAMELEN]; /* Host name for mount pt */ 119 long root_time; /* Timestamp of root fs */ 120 char my_hostnam[MAXHOSTNAMELEN]; /* Client host name */ 121}; 122 |
123#ifdef _KERNEL 124extern struct nfsv3_diskless nfsv3_diskless; 125extern struct nfs_diskless nfs_diskless; 126extern int nfs_diskless_valid; |
|
124#endif | 127#endif |
128 129#endif |
|