Commit | Line | Data |
---|---|---|
a2907882 KM |
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 | * | |
dbf0c423 | 8 | * %sccs.include.redist.c% |
a2907882 | 9 | * |
dbf0c423 | 10 | * @(#)nfsmount.h 7.6 (Berkeley) %G% |
a2907882 KM |
11 | */ |
12 | ||
13 | /* | |
14 | * Mount structure. | |
ecfaf81a KM |
15 | * One allocated on every NFS mount. |
16 | * Holds NFS specific information for mount. | |
a2907882 KM |
17 | */ |
18 | struct nfsmount { | |
19 | int nm_flag; /* Flags for soft/hard... */ | |
ecfaf81a | 20 | struct mount *nm_mountp; /* Vfs structure for this filesystem */ |
a2907882 | 21 | nfsv2fh_t nm_fh; /* File handle of root dir */ |
f0f1cbaa KM |
22 | struct socket *nm_so; /* Rpc socket */ |
23 | int nm_sotype; /* Type of socket */ | |
24 | int nm_soproto; /* and protocol */ | |
25 | int nm_soflags; /* pr_flags for socket protocol */ | |
26 | struct mbuf *nm_nam; /* Addr of server */ | |
ecfaf81a KM |
27 | short nm_retry; /* Max retry count */ |
28 | short nm_rexmit; /* Rexmit on previous request */ | |
29 | short nm_rtt; /* Round trip timer ticks @ NFS_HZ */ | |
30 | short nm_rto; /* Current timeout */ | |
31 | short nm_srtt; /* Smoothed round trip time */ | |
32 | short nm_rttvar; /* RTT variance */ | |
f0f1cbaa KM |
33 | short nm_currto; /* Current rto of any nfsmount */ |
34 | short nm_currexmit; /* Max rexmit count of nfsmounts */ | |
35 | short nm_sent; /* Request send count */ | |
36 | short nm_window; /* Request send window (max) */ | |
37 | short nm_winext; /* Window incremental value */ | |
38 | short nm_ssthresh; /* Slowstart threshold */ | |
39 | short nm_salen; /* Actual length of nm_sockaddr */ | |
a2907882 KM |
40 | int nm_rsize; /* Max size of read rpc */ |
41 | int nm_wsize; /* Max size of write rpc */ | |
ecfaf81a KM |
42 | }; |
43 | ||
54fb9dc2 KM |
44 | #ifdef KERNEL |
45 | /* | |
46 | * Convert mount ptr to nfsmount ptr. | |
47 | */ | |
48 | #define VFSTONFS(mp) ((struct nfsmount *)((mp)->mnt_data)) | |
49 | #endif /* KERNEL */ |