From owner-freebsd-current@FreeBSD.ORG Mon Jan 10 00:49:51 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6D82E106575F for ; Mon, 10 Jan 2011 00:49:51 +0000 (UTC) (envelope-from salwerom@iem.pw.edu.pl) Received: from volt.iem.pw.edu.pl (volt.iem.pw.edu.pl [194.29.146.3]) by mx1.freebsd.org (Postfix) with SMTP id 04B068FC08 for ; Mon, 10 Jan 2011 00:49:50 +0000 (UTC) Received: from marekdesktop (cwx170.internetdsl.tpnet.pl [83.19.131.170]) (Authenticated sender: salwerom) by volt.iem.pw.edu.pl (Postfix) with ESMTPSA id 97E03A66A5C; Mon, 10 Jan 2011 01:49:43 +0100 (CET) Message-ID: From: "Marek Salwerowicz" To: "Rick Macklem" References: <1145328149.22203.1294608528602.JavaMail.root@erie.cs.uoguelph.ca> Date: Mon, 10 Jan 2011 01:49:36 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 X-Virus-Scanned: clamav-milter 0.96.5 at volt.iem.pw.edu.pl X-Virus-Status: Clean X-Mailman-Approved-At: Mon, 10 Jan 2011 01:32:57 +0000 Cc: freebsd-current@freebsd.org, Andrzej Tobola Subject: Re: NFSv4 and pam_mount - mounting user home directories. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Jan 2011 00:49:51 -0000 >> Good to know if it will work with nfsv4 server started via rc.conf and >> sysctl values in sysctl.conf.. >> > build a kernel with "options NFSD" in its config file and then try it > with that kernel, and then you'll find out... > How about patching the /etc/rc.d/nfsd script like this: [..] nfsd_precmd() { if checkyesno nfs_server_newnfs_only; then echo 'NFS server serving only newnfs (NFSv4)=YES' sysctl vfs.newnfs.server_min_nfsvers=4 > /dev/null fi [..] It checks if there is a nfs_server_newnfs_only=YES set in rc.conf, and if so, it runs the sysctl command. But, after testing, it is too late (nfsd starts with NFSv3 support). Any idea where to put that patch ? -- Marek Salwerowicz