Deleted Added
full compact
nfsport.h (221014) nfsport.h (223280)
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

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

24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
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

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

24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
32 * $FreeBSD: head/sys/fs/nfs/nfsport.h 221014 2011-04-25 13:09:32Z rmacklem $
32 * $FreeBSD: head/sys/fs/nfs/nfsport.h 223280 2011-06-18 23:02:53Z rmacklem $
33 */
34
35#ifndef _NFS_NFSPORT_H_
36#define _NFS_NFSPORT_H_
37
38/*
39 * In general, I'm not fond of #includes in .h files, but this seems
40 * to be the cleanest way to handle #include files for the ports.

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

262#define NFSV4OP_CBNOPS 5
263
264/*
265 * The lower numbers -> 21 are used by NFSv2 and v3. These define higher
266 * numbers used by NFSv4.
267 * NFS_V3NPROCS is one greater than the last V3 op and NFS_NPROCS is
268 * one greater than the last number.
269 */
33 */
34
35#ifndef _NFS_NFSPORT_H_
36#define _NFS_NFSPORT_H_
37
38/*
39 * In general, I'm not fond of #includes in .h files, but this seems
40 * to be the cleanest way to handle #include files for the ports.

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

262#define NFSV4OP_CBNOPS 5
263
264/*
265 * The lower numbers -> 21 are used by NFSv2 and v3. These define higher
266 * numbers used by NFSv4.
267 * NFS_V3NPROCS is one greater than the last V3 op and NFS_NPROCS is
268 * one greater than the last number.
269 */
270#ifndef NFS_V3NPROCS
270#define NFS_V3NPROCS 22
271
272#define NFSPROC_LOOKUPP 22
273#define NFSPROC_SETCLIENTID 23
274#define NFSPROC_SETCLIENTIDCFRM 24
275#define NFSPROC_LOCK 25
276#define NFSPROC_LOCKU 26
277#define NFSPROC_OPEN 27

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

288#define NFSPROC_RETDELEGRENAME2 38
289#define NFSPROC_GETACL 39
290#define NFSPROC_SETACL 40
291
292/*
293 * Must be defined as one higher than the last Proc# above.
294 */
295#define NFSV4_NPROCS 41
271#define NFS_V3NPROCS 22
272
273#define NFSPROC_LOOKUPP 22
274#define NFSPROC_SETCLIENTID 23
275#define NFSPROC_SETCLIENTIDCFRM 24
276#define NFSPROC_LOCK 25
277#define NFSPROC_LOCKU 26
278#define NFSPROC_OPEN 27

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

289#define NFSPROC_RETDELEGRENAME2 38
290#define NFSPROC_GETACL 39
291#define NFSPROC_SETACL 40
292
293/*
294 * Must be defined as one higher than the last Proc# above.
295 */
296#define NFSV4_NPROCS 41
297#endif /* NFS_V3NPROCS */
296
297/*
298 * Stats structure
299 */
300struct ext_nfsstats {
301 int attrcache_hits;
302 int attrcache_misses;
303 int lookupcache_hits;

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

353/*
354 * Define the ext_nfsstats as nfsstats for the kernel code.
355 */
356#define nfsstats ext_nfsstats
357
358/*
359 * Define NFS_NPROCS as NFSV4_NPROCS for the experimental kernel code.
360 */
298
299/*
300 * Stats structure
301 */
302struct ext_nfsstats {
303 int attrcache_hits;
304 int attrcache_misses;
305 int lookupcache_hits;

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

355/*
356 * Define the ext_nfsstats as nfsstats for the kernel code.
357 */
358#define nfsstats ext_nfsstats
359
360/*
361 * Define NFS_NPROCS as NFSV4_NPROCS for the experimental kernel code.
362 */
363#ifndef NFS_NPROCS
361#define NFS_NPROCS NFSV4_NPROCS
364#define NFS_NPROCS NFSV4_NPROCS
365#endif
362
363#include <fs/nfs/nfskpiport.h>
364#include <fs/nfs/nfsdport.h>
365#include <fs/nfs/rpcv2.h>
366#include <fs/nfs/nfsproto.h>
367#include <fs/nfs/nfs.h>
368#include <fs/nfs/nfs_var.h>
369#include <fs/nfs/nfsm_subs.h>

--- 539 unchanged lines hidden ---
366
367#include <fs/nfs/nfskpiport.h>
368#include <fs/nfs/nfsdport.h>
369#include <fs/nfs/rpcv2.h>
370#include <fs/nfs/nfsproto.h>
371#include <fs/nfs/nfs.h>
372#include <fs/nfs/nfs_var.h>
373#include <fs/nfs/nfsm_subs.h>

--- 539 unchanged lines hidden ---