From owner-freebsd-stable@FreeBSD.ORG Thu Sep 4 16:52:34 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 20A00106567C for ; Thu, 4 Sep 2008 16:52:34 +0000 (UTC) (envelope-from kometen@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.155]) by mx1.freebsd.org (Postfix) with ESMTP id A07718FC16 for ; Thu, 4 Sep 2008 16:52:33 +0000 (UTC) (envelope-from kometen@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so473350fgb.35 for ; Thu, 04 Sep 2008 09:52:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Xt5N6R4VhcmYzEU2YxewbJxfnJkUaVyFbAbOwtHMMpI=; b=r+k1XpggehwgK7mGnqrGx1l3K/2atvGxWx4kTq/jYQ68V1eCyL2E+0h3BznaGtCy4n N7T/wqKCC60GJ4TxtJ9LfUEJFELeaw9id2J9seaEsIEyhe7MelIcoFyUm2P4VBk0uBgL 2MRl9m88dBro/gEo2pTKeCAJrVippXR4dmwFg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=HJBGcMzHBmFDMI3xkwDHZDLaB9Pbp/ECAJZufbwXljeimr8HzCmI3mXR0ztWX8bkV5 7ChR4uvHgobmOM6m8yVhHda1gbyCeGAr8pP4rmw8lt/xkzHmyVpn3V2e1Nwr64FVcrwc nT4JvbghXZaFyQ+QhkIiL9nXCcePyGyNrRI2o= Received: by 10.86.68.1 with SMTP id q1mr7930800fga.2.1220547152108; Thu, 04 Sep 2008 09:52:32 -0700 (PDT) Received: by 10.86.79.10 with HTTP; Thu, 4 Sep 2008 09:52:31 -0700 (PDT) Message-ID: Date: Thu, 4 Sep 2008 18:52:31 +0200 From: "Claus Guttesen" To: "Tim Chen" In-Reply-To: <1f51039c0809040911oe4409b5ibe3f4dcf53528407@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1f51039c0809040911oe4409b5ibe3f4dcf53528407@mail.gmail.com> Cc: freebsd-stable@freebsd.org Subject: Re: How to disable NFS fnctl in /etc/fstab? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Sep 2008 16:52:34 -0000 > For some reason we want to disable fnctl lock for NFS > mounted partition. We can achieve this by the following > command: mount_nfs -T -L server:/home /mnt > However after several time of failure tests, we still > can not make it work in /etc/fstab. > According to man mount_nfs: -L Do not forward fcntl(2) locks over the wire. All locks will be local and not seen by the server and likewise not seen by other NFS clients. This removes the need to run the rpcbind(8) service and the rpc.statd(8) and rpc.lockd(8) servers on the client. Note that this option will only be honored when performing the initial mount, it will be silently ignored if used while updating the mount options. ... Historic -o Options Use of these options is deprecated, they are only mentioned here for compatibility with historic versions of mount_nfs. bg Same as -b. ... lockd Same as not specifying -L. If you do not specify lockd on the client and don't run rpcbind on the server it may run as you require. But I haven't tried myself. If my assumption is correct you only need to make shure that rpcbind is not running on the server. -- regards Claus When lenity and cruelty play for a kingdom, the gentler gamester is the soonest winner. Shakespeare