Deleted Added
full compact
nfsrvstats.h (3664) nfsrvstats.h (3820)
1/*
2 * Copyright (c) 1989, 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 * @(#)nfs.h 8.1 (Berkeley) 6/10/93
1/*
2 * Copyright (c) 1989, 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 * @(#)nfs.h 8.1 (Berkeley) 6/10/93
37 * $Id: nfs.h,v 1.5 1994/10/02 17:26:54 phk Exp $
37 * $Id: nfs.h,v 1.6 1994/10/17 17:47:30 phk Exp $
38 */
39
40#ifndef _NFS_NFS_H_
41#define _NFS_NFS_H_
42
43/*
44 * Tunable constants for nfs
45 */

--- 105 unchanged lines hidden (view full) ---

151#define NFSSVC_NFSD 0x004
152#define NFSSVC_ADDSOCK 0x008
153#define NFSSVC_AUTHIN 0x010
154#define NFSSVC_GOTAUTH 0x040
155#define NFSSVC_AUTHINFAIL 0x080
156#define NFSSVC_MNTD 0x100
157
158/*
38 */
39
40#ifndef _NFS_NFS_H_
41#define _NFS_NFS_H_
42
43/*
44 * Tunable constants for nfs
45 */

--- 105 unchanged lines hidden (view full) ---

151#define NFSSVC_NFSD 0x004
152#define NFSSVC_ADDSOCK 0x008
153#define NFSSVC_AUTHIN 0x010
154#define NFSSVC_GOTAUTH 0x040
155#define NFSSVC_AUTHINFAIL 0x080
156#define NFSSVC_MNTD 0x100
157
158/*
159 * fs.nfs sysctl(3) identifiers
160 */
161#define NFS_NFSSTATS 1 /* struct: struct nfsstats */
162
163#define FS_NFS_NAMES { \
164 { 0, 0 }, \
165 { "nfsstats", CTLTYPE_STRUCT }, \
166}
167
168/*
159 * The set of signals the interrupt an I/O in progress for NFSMNT_INT mounts.
160 * What should be in this set is open to debate, but I believe that since
161 * I/O system calls on ufs are never interrupted by signals the set should
162 * be minimal. My reasoning is that many current programs that use signals
163 * such as SIGALRM will not expect file I/O system calls to be interrupted
164 * by them and break.
165 */
166#ifdef KERNEL

--- 39 unchanged lines hidden (view full) ---

206#define R_SENT 0x02 /* request has been sent */
207#define R_SOFTTERM 0x04 /* soft mnt, too many retries */
208#define R_INTR 0x08 /* intr mnt, signal pending */
209#define R_SOCKERR 0x10 /* Fatal error on socket */
210#define R_TPRINTFMSG 0x20 /* Did a tprintf msg. */
211#define R_MUSTRESEND 0x40 /* Must resend request */
212#define R_GETONEREP 0x80 /* Probe for one reply only */
213
169 * The set of signals the interrupt an I/O in progress for NFSMNT_INT mounts.
170 * What should be in this set is open to debate, but I believe that since
171 * I/O system calls on ufs are never interrupted by signals the set should
172 * be minimal. My reasoning is that many current programs that use signals
173 * such as SIGALRM will not expect file I/O system calls to be interrupted
174 * by them and break.
175 */
176#ifdef KERNEL

--- 39 unchanged lines hidden (view full) ---

216#define R_SENT 0x02 /* request has been sent */
217#define R_SOFTTERM 0x04 /* soft mnt, too many retries */
218#define R_INTR 0x08 /* intr mnt, signal pending */
219#define R_SOCKERR 0x10 /* Fatal error on socket */
220#define R_TPRINTFMSG 0x20 /* Did a tprintf msg. */
221#define R_MUSTRESEND 0x40 /* Must resend request */
222#define R_GETONEREP 0x80 /* Probe for one reply only */
223
214struct nfsstats nfsstats;
224extern struct nfsstats nfsstats;
215
216/*
217 * A list of nfssvc_sock structures is maintained with all the sockets
218 * that require service by the nfsd.
219 * The nfsuid structs hang off of the nfssvc_sock structs in both lru
220 * and uid hash lists.
221 */
222#define NUIDHASHSIZ 32

--- 140 unchanged lines hidden ---
225
226/*
227 * A list of nfssvc_sock structures is maintained with all the sockets
228 * that require service by the nfsd.
229 * The nfsuid structs hang off of the nfssvc_sock structs in both lru
230 * and uid hash lists.
231 */
232#define NUIDHASHSIZ 32

--- 140 unchanged lines hidden ---