2 .\" Copyright (c) 1996, Sun Microsystems, Inc.
3 .\" All Rights Reserved
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 CLEAR_LOCKS 1M "Oct 6, 2004"
9 clear_locks \- clear locks held on behalf of an NFS client
13 \fB/usr/sbin/clear_locks\fR [\fB-s\fR] \fIhostname\fR
19 The \fBclear_locks\fR command removes all file, record, and share locks created
20 by the \fIhostname\fR and held on the current host, regardless of which process
21 created or owns the locks.
24 This command can be run only by the super-user.
27 This command should only be used to repair the rare case of a client crashing
28 and failing to clear held locks. Clearing locks held by an active client may
29 cause applications to fail in an unexpected manner.
37 Remove all locks created by the current machine and held by the server
44 The following operands are supported:
88 If unable to contact server (\fBRPC\fR).
94 \fBfcntl\fR(2), \fBattributes\fR(5)