xref: /titanic_44/usr/src/man/man1m/unshare_nfs.1m (revision f05d7fc81533be643136e12ce92516d1d4292921)
te
Copyright (c) 2003 Sun Microsystems, Inc. All Rights Reserved.
Copyright 1989 AT&T
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.
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.
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]
UNSHARE_NFS 1M "May 6, 2003"
NAME
unshare_nfs - make local NFS file systems unavailable for mounting by remote systems
SYNOPSIS

unshare [-F nfs] pathname
DESCRIPTION

The unshare command makes local file systems unavailable for mounting by remote systems. The shared file system must correspond to a line with NFS as the FSType in the file /etc/dfs/sharetab.

OPTIONS

The following options are supported: -F

This option may be omitted if NFS is the first file system type listed in the file /etc/dfs/fstypes.

FILES
/etc/dfs/fstypes

/etc/dfs/sharetab

SEE ALSO

nfsd(1M), share(1M), attributes(5)

NOTES

If the file system being unshared is a symbolic link to a valid pathname, the canonical path (the path which the symbolic link follows) will be unshared.

For example, if /export/foo is a symbolic link to /export/bar (/export/foo -> /export/bar), the following unshare command will result in /export/bar as the unshared pathname (and not /export/foo):

example# unshare -F nfs /export/foo

For file systems that are accessed by NFS Version 4 clients, once the unshare is complete, all NFS Version 4 state (open files and file locks) are released and unrecoverable by the clients. If the intent is to share the file system after some administrative action, the NFS daemon (nfsd) should first be stopped and then the file system unshared. After the administrative action is complete, the file system would then be shared and the NFS daemon restarted. See nfsd(1M)