Print this page
11083 support NFS server in zone
Portions contributed by: Dan Kruchinin <dan.kruchinin@nexenta.com>
Portions contributed by: Stepan Zastupov <stepan.zastupov@gmail.com>
Portions contributed by: Joyce McIntosh <joyce.mcintosh@nexenta.com>
Portions contributed by: Mike Zeller <mike@mikezeller.net>
Portions contributed by: Dan McDonald <danmcd@joyent.com>
Portions contributed by: Gordon Ross <gordon.w.ross@gmail.com>
Portions contributed by: Vitaliy Gusev <gusev.vitaliy@gmail.com>
Reviewed by: Rick McNeal <rick.mcneal@nexenta.com>
Reviewed by: Rob Gittins <rob.gittins@nexenta.com>
Reviewed by: Sanjay Nadkarni <sanjay.nadkarni@nexenta.com>
Reviewed by: Jason King <jbk@joyent.com>
Reviewed by: C Fraire <cfraire@me.com>
Change-Id: I22f289d357503f9b48a0bc2482cc4328a6d43d16
        
@@ -16,17 +16,24 @@
  * fields enclosed by brackets "[]" replaced with your own identifying
  * information: Portions Copyright [yyyy] [name of copyright owner]
  *
  * CDDL HEADER END
  */
+
 /*
  * Copyright (c) 1986, 2010, Oracle and/or its affiliates. All rights reserved.
- *
+ */
+
+/*
  *      Copyright (c) 1983,1984,1985,1986,1987,1988,1989  AT&T.
  *      All rights reserved.
  */
 
+/*
+ * Copyright 2018 Nexenta Systems, Inc.
+ */
+
 #include <sys/param.h>
 #include <sys/types.h>
 #include <sys/systm.h>
 #include <sys/thread.h>
 #include <sys/t_lock.h>
@@ -58,10 +65,11 @@
 #include <rpc/auth.h>
 #include <rpc/clnt.h>
 
 #include <nfs/nfs.h>
 #include <nfs/nfs_clnt.h>
+#include <nfs/nfs_cmd.h>
 
 #include <nfs/rnode.h>
 #include <nfs/nfs_acl.h>
 #include <nfs/lm.h>
 
@@ -2825,10 +2833,12 @@
         zone_key_create(&mi_list_key, nfs_mi_init, nfs_mi_shutdown,
             nfs_mi_destroy);
 
         nfs4_clnt_init();
 
+        nfscmd_init();
+
 #ifdef DEBUG
         nfs_clntup = B_TRUE;
 #endif
 
         return (0);
@@ -2844,10 +2854,11 @@
 {
         (void) zone_key_delete(mi_list_key);
         nfs_subrfini();
         nfs_vfsfini();
         nfs4_clnt_fini();
+        nfscmd_fini();
 }
 
 /*
  * nfs_lockrelease:
  *