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

@@ -20,12 +20,12 @@
 # CDDL HEADER END
 #
 
 #
 # Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
-# Copyright 2015 Nexenta Systems, Inc.  All rights reserved.
 # Copyright 2016 Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
+# Copyright 2018 Nexenta Systems, Inc.  All rights reserved.
 #
 
 # Start/stop processes required for server NFS
 
 . /lib/svc/share/smf_include.sh

@@ -64,18 +64,10 @@
         svcadm restart $IPF_FMRI
 }
 
 case "$1" in
 'start')
-        # The NFS server is not supported in a local zone
-        if smf_is_nonglobalzone; then
-                /usr/sbin/svcadm disable -t svc:/network/nfs/server
-                echo "The NFS server is not supported in a local zone"
-                sleep 5 &
-                exit $SMF_EXIT_OK
-        fi
-
         # Share all file systems enabled for sharing. sharemgr understands
         # regular shares and ZFS shares and will handle both. Technically,
         # the shares would have been started long before getting here since
         # nfsd has a dependency on them.