1 /* 2 * Copyright (c) 1989 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 * Redistribution and use in source and binary forms are permitted 9 * provided that the above copyright notice and this paragraph are 10 * duplicated in all such forms and that any documentation, 11 * advertising materials, and other materials related to such 12 * distribution and use acknowledge that the software was developed 13 * by the University of California, Berkeley. The name of the 14 * University may not be used to endorse or promote products derived 15 * from this software without specific prior written permission. 16 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 17 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 19 * 20 * @(#)nfsmount.h 7.1 (Berkeley) 07/05/89 21 */ 22 23 /* 24 * Mount structure. 25 * One allocated on every nfs mount. 26 * Holds nfs specific info for mount (sockets...) 27 */ 28 struct nfsmount { 29 int nm_flag; /* Flags for soft/hard... */ 30 struct mount *nm_mountp; /* vfs structure for this filesystem */ 31 nfsv2fh_t nm_fh; /* File handle of root dir */ 32 struct mbuf *nm_sockaddr; /* Address of server */ 33 struct socket *nm_so; /* rpc socket */ 34 int nm_timeo; /* Timeout interval */ 35 int nm_retrans; /* # of retransmits */ 36 int nm_rsize; /* Max size of read rpc */ 37 int nm_wsize; /* Max size of write rpc */ 38 char nm_path[MNAMELEN]; /* Path mounted on */ 39 char nm_host[MNAMELEN]; /* Remote host name */ 40 }; 41 42 struct nfsmount *vfs_to_nfs(); 43