Deleted Added
full compact
nfs_fha.h (249596) nfs_fha.h (259765)
1/*-
2 * Copyright (c) 2008 Isilon Inc http://www.isilon.com/
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

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

17 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23 * SUCH DAMAGE.
24 */
1/*-
2 * Copyright (c) 2008 Isilon Inc http://www.isilon.com/
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

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

17 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23 * SUCH DAMAGE.
24 */
25/* $FreeBSD: head/sys/nfs/nfs_fha.h 249596 2013-04-17 22:42:43Z ken $ */
25/* $FreeBSD: head/sys/nfs/nfs_fha.h 259765 2013-12-23 08:43:16Z mav $ */
26
27#ifndef _NFS_FHA_H
28#define _NFS_FHA_H 1
29
30#ifdef _KERNEL
31
32/* Sysctl defaults. */
33#define FHA_DEF_ENABLE 1

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

77 u_int64_t fh;
78 off_t offset;
79 int locktype;
80};
81
82struct fha_callbacks {
83 rpcproc_t (*get_procnum)(rpcproc_t procnum);
84 int (*realign)(struct mbuf **mb, int malloc_flags);
26
27#ifndef _NFS_FHA_H
28#define _NFS_FHA_H 1
29
30#ifdef _KERNEL
31
32/* Sysctl defaults. */
33#define FHA_DEF_ENABLE 1

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

77 u_int64_t fh;
78 off_t offset;
79 int locktype;
80};
81
82struct fha_callbacks {
83 rpcproc_t (*get_procnum)(rpcproc_t procnum);
84 int (*realign)(struct mbuf **mb, int malloc_flags);
85 int (*get_fh)(fhandle_t *fh, int v3, struct mbuf **md, caddr_t *dpos);
85 int (*get_fh)(uint64_t *fh, int v3, struct mbuf **md, caddr_t *dpos);
86 int (*is_read)(rpcproc_t procnum);
87 int (*is_write)(rpcproc_t procnum);
88 int (*get_offset)(struct mbuf **md, caddr_t *dpos, int v3, struct
89 fha_info *info);
90 int (*no_offset)(rpcproc_t procnum);
91 void (*set_locktype)(rpcproc_t procnum, struct fha_info *info);
92 int (*fhe_stats_sysctl)(SYSCTL_HANDLER_ARGS);
93};

--- 19 unchanged lines hidden ---
86 int (*is_read)(rpcproc_t procnum);
87 int (*is_write)(rpcproc_t procnum);
88 int (*get_offset)(struct mbuf **md, caddr_t *dpos, int v3, struct
89 fha_info *info);
90 int (*no_offset)(rpcproc_t procnum);
91 void (*set_locktype)(rpcproc_t procnum, struct fha_info *info);
92 int (*fhe_stats_sysctl)(SYSCTL_HANDLER_ARGS);
93};

--- 19 unchanged lines hidden ---