1 '\" te
   2 .\" Copyright (c) 2003 Sun Microsystems, Inc. All Rights Reserved.
   3 .\" Copyright 1989 AT&T
   4 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
   5 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
   6 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
   7 .TH UNSHARE_NFS 1M "May 6, 2003"
   8 .SH NAME
   9 unshare_nfs \- make local NFS file systems unavailable for mounting by remote
  10 systems
  11 .SH SYNOPSIS
  12 .LP
  13 .nf
  14 \fBunshare\fR [\fB-F\fR nfs] \fIpathname\fR
  15 .fi
  16 
  17 .SH DESCRIPTION
  18 .sp
  19 .LP
  20 The \fBunshare\fR command makes local file systems unavailable for mounting by
  21 remote systems. The shared file system must correspond to a line with NFS as
  22 the \fIFSType\fR in the file \fB/etc/dfs/sharetab\fR.
  23 .SH OPTIONS
  24 .sp
  25 .LP
  26 The following options are supported:
  27 .sp
  28 .ne 2
  29 .na
  30 \fB\fB-F\fR\fR
  31 .ad
  32 .RS 6n
  33 This option may be omitted if NFS is the first file system type listed in the
  34 file \fB/etc/dfs/fstypes\fR.
  35 .RE
  36 
  37 .SH FILES
  38 .sp
  39 .ne 2
  40 .na
  41 \fB\fB/etc/dfs/fstypes\fR\fR
  42 .ad
  43 .RS 22n
  44 
  45 .RE
  46 
  47 .sp
  48 .ne 2
  49 .na
  50 \fB\fB/etc/dfs/sharetab \fR\fR
  51 .ad
  52 .RS 22n
  53 
  54 .RE
  55 
  56 .SH SEE ALSO
  57 .sp
  58 .LP
  59 \fBnfsd\fR(1M), \fBshare\fR(1M), \fBattributes\fR(5)
  60 .SH NOTES
  61 .sp
  62 .LP
  63 If the file system being unshared is a symbolic link to a valid pathname, the
  64 canonical path (the path which the symbolic link follows) will be unshared.
  65 .sp
  66 .LP
  67 For example, if \fB/export/foo\fR is a symbolic link to \fB/export/bar\fR
  68 (\fB/export/foo -> /export/bar\fR), the following \fBunshare\fR command will
  69 result in \fB/export/bar\fR as the unshared pathname (and not
  70 \fB/export/foo\fR):
  71 .sp
  72 .in +2
  73 .nf
  74 example#  unshare -F nfs /export/foo
  75 .fi
  76 .in -2
  77 .sp
  78 
  79 .sp
  80 .LP
  81 For file systems that are accessed by NFS Version 4 clients, once the unshare
  82 is complete, all NFS Version 4 state (open files and file locks) are released
  83 and unrecoverable by the clients. If the intent is to share the file system
  84 after some administrative action, the NFS daemon (\fBnfsd\fR) should first be
  85 stopped and then the file system unshared. After the administrative action is
  86 complete, the file system would then be shared and the NFS daemon restarted.
  87 See \fBnfsd\fR(1M)