From owner-svn-src-head@FreeBSD.ORG Fri May 6 01:06:22 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9F4AD1065674; Fri, 6 May 2011 01:06:22 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-jnhn.mail.uoguelph.ca (esa-jnhn.mail.uoguelph.ca [131.104.91.44]) by mx1.freebsd.org (Postfix) with ESMTP id D40E98FC0C; Fri, 6 May 2011 01:06:21 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApwEAHNIw02DaFvO/2dsb2JhbACEUaJltGWRHoEqhF0Ej0qHGodR X-IronPort-AV: E=Sophos;i="4.64,323,1301889600"; d="scan'208";a="121714173" Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-jnhn-pri.mail.uoguelph.ca with ESMTP; 05 May 2011 20:51:49 -0400 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id DAA85793A9; Thu, 5 May 2011 20:51:49 -0400 (EDT) Date: Thu, 5 May 2011 20:51:49 -0400 (EDT) From: Rick Macklem To: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= Message-ID: <1714751436.1086037.1304643109772.JavaMail.root@erie.cs.uoguelph.ca> In-Reply-To: <86r58dsi0m.fsf@ds4.des.no> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [172.17.91.201] X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - IE7 (Win)/6.0.10_GA_2692) Cc: svn-src-head@freebsd.org, Rick Macklem , svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r221124 - in head: . sbin/mount sbin/mount_nfs sys/amd64/conf sys/fs/nfsclient sys/i386/conf sys/ia64/conf sys/nfsclient sys/pc98/conf sys/powerpc/conf sys/sparc64/conf sys/sun4v/conf X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 May 2011 01:06:22 -0000 > Rick Macklem writes: > > "Dag-Erling Sm=C3=B8rgrav" writes: > > > Ideally, both the old and the new NFS stack would use the same > > > fstypes and sysctl names, but I don't know if there's any way we > > > can > > > prevent someone from compiling both into the kernel at the same > > > time, or loading both modules. > > If the scripts in /etc/rc.d are fixed to use the correct sysctl > > naming, > > do you think it matters which one is "vfs.nfs."? >=20 > Yes. There is a whole world outside the base system: munin, webmin, > nagios etc. Are you going to change all of them as well? >=20 Btw, the simpler patch is to just change the SYSCTL() naming conventions, but there is no easy way (at least with recompiling the kernel + modules) to switch it back so the old client uses "vfs.nfs.xxx". In other words: vfs.nfs.xxx - would be the variables on the new client vfs.oldnfs.xxx - would be the same variables for the old client Then the default/new client would work, but switching back to the old would be involved. With the SYSCTL() name space shared, the switch back and forth would be simply which fstype was used for the mounts and they would both see the same sysctl changes. rick ps: I have the shared patch running here now. It is straightforward, but fairly big.