Deleted Added
full compact
nfs_fha_new.c (302408) nfs_fha_new.c (322137)
1/*-
2 * Copyright (c) 2008 Isilon Inc http://www.isilon.com/
3 * Copyright (c) 2013 Spectra Logic Corporation
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2008 Isilon Inc http://www.isilon.com/
3 * Copyright (c) 2013 Spectra Logic Corporation
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: stable/11/sys/fs/nfsserver/nfs_fha_new.c 259765 2013-12-23 08:43:16Z mav $");
28__FBSDID("$FreeBSD: stable/11/sys/fs/nfsserver/nfs_fha_new.c 322137 2017-08-07 07:02:51Z mav $");
29
30#include <fs/nfs/nfsport.h>
31
32#include <rpc/rpc.h>
33#include <nfs/nfs_fha.h>
34#include <fs/nfs/xdr_subs.h>
35#include <fs/nfs/nfs.h>
36#include <fs/nfs/nfsproto.h>

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

88 softc->pool = &nfsrvd_pool;
89
90 /*
91 * Initialize the sysctl context list for the fha module.
92 */
93 sysctl_ctx_init(&softc->sysctl_ctx);
94 softc->sysctl_tree = SYSCTL_ADD_NODE(&softc->sysctl_ctx,
95 SYSCTL_STATIC_CHILDREN(_vfs_nfsd), OID_AUTO, "fha", CTLFLAG_RD,
29
30#include <fs/nfs/nfsport.h>
31
32#include <rpc/rpc.h>
33#include <nfs/nfs_fha.h>
34#include <fs/nfs/xdr_subs.h>
35#include <fs/nfs/nfs.h>
36#include <fs/nfs/nfsproto.h>

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

88 softc->pool = &nfsrvd_pool;
89
90 /*
91 * Initialize the sysctl context list for the fha module.
92 */
93 sysctl_ctx_init(&softc->sysctl_ctx);
94 softc->sysctl_tree = SYSCTL_ADD_NODE(&softc->sysctl_ctx,
95 SYSCTL_STATIC_CHILDREN(_vfs_nfsd), OID_AUTO, "fha", CTLFLAG_RD,
96 0, "fha node");
96 0, "NFS File Handle Affinity (FHA)");
97 if (softc->sysctl_tree == NULL) {
98 printf("%s: unable to allocate sysctl tree\n", __func__);
99 return;
100 }
101
102 fha_init(softc);
103}
104

--- 172 unchanged lines hidden ---
97 if (softc->sysctl_tree == NULL) {
98 printf("%s: unable to allocate sysctl tree\n", __func__);
99 return;
100 }
101
102 fha_init(softc);
103}
104

--- 172 unchanged lines hidden ---