From owner-freebsd-fs@FreeBSD.ORG Tue May 22 08:05:23 2012 Return-Path: Delivered-To: freebsd-fs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9724A106566B for ; Tue, 22 May 2012 08:05:23 +0000 (UTC) (envelope-from simon@comsys.ntu-kpi.kiev.ua) Received: from comsys.kpi.ua (comsys.kpi.ua [77.47.192.42]) by mx1.freebsd.org (Postfix) with ESMTP id C6B398FC14 for ; Tue, 22 May 2012 08:04:59 +0000 (UTC) Received: from pm513-1.comsys.kpi.ua ([10.18.52.101] helo=pm513-1.comsys.ntu-kpi.kiev.ua) by comsys.kpi.ua with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1SWk5N-0005oB-6b; Tue, 22 May 2012 11:04:53 +0300 Received: by pm513-1.comsys.ntu-kpi.kiev.ua (Postfix, from userid 1001) id 979821CC21; Tue, 22 May 2012 11:04:56 +0300 (EEST) Date: Tue, 22 May 2012 11:04:56 +0300 From: Andrey Simonenko To: Martin Birgmeier Message-ID: <20120522080456.GA40365@pm513-1.comsys.ntu-kpi.kiev.ua> References: <201205200810.q4K8A4KP087730@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201205200810.q4K8A4KP087730@freefall.freebsd.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Authenticated-User: simon@comsys.ntu-kpi.kiev.ua X-Authenticator: plain X-Sender-Verify: SUCCEEDED (sender exists & accepts mail) X-Exim-Version: 4.63 (build at 28-Apr-2011 07:11:12) X-Date: 2012-05-22 11:04:53 X-Connected-IP: 10.18.52.101:64609 X-Message-Linecount: 88 X-Body-Linecount: 72 X-Message-Size: 3530 X-Body-Size: 2825 Cc: freebsd-fs@FreeBSD.org Subject: Re: kern/136865: [nfs] [patch] NFS exports atomic and on-the-fly atomic updates X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 May 2012 08:05:23 -0000 Hello, On Sun, May 20, 2012 at 08:10:04AM +0000, Martin Birgmeier wrote: > The following reply was made to PR kern/136865; it has been noted by GNATS. > > From: Martin Birgmeier > To: bug-followup@FreeBSD.org, simon@comsys.ntu-kpi.kiev.ua > Cc: > Subject: Re: kern/136865: [nfs] [patch] NFS exports atomic and on-the-fly > atomic updates > Date: Sun, 20 May 2012 10:04:01 +0200 > > Dear Andrey, > > It seems that you have done some great work here, and I would really > like to see this integrated into the core FreeBSD distribution (I was > the submitter of http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/131342). > > I would like to try out your patches and have two questions: > > - Do your patches support multiple zfs sharenfs specifications as > proposed in http://www.freebsd.org/cgi/query-pr.cgi?pr=147881 (I am > using this)? The exports(5) manual page says that address specifications must be specified after options. The nfs.exports(5) file format allows to use options after address specifications, so they can overwrite previously specified options. It is possible to specify all settings for one file system in one line, no ';' like separators are required. For example line: /fs -ro -sec krb5 1.1.1.1 -nfsv4 no -rw 2.2.2.2 -sec sys -nfsv4 yes 3.3.3.3 will be translated to ("nfse -t ..." output): Pathname /fs Export specifications: -rw -sec sys -maproot=-2:-2 -host 3.3.3.3 -rw -sec krb5 -maproot=-2:-2 -nfsv4 no -host 2.2.2.2 -ro -sec krb5 -maproot=-2:-2 -host 1.1.1.1 > > - Could you give a concise list of incompatibilities (and even > regressions if they should exist at all) of your solution compared to > the standard one? - As to the advantages, I am already convinced. :-) In short: if nfse is run in compatible mode with mountd ("nfse -C ..."), then it is more compatible with exports(5) than mountd is. If one did not follow rules of exports(5), then "nfse -C ..." can be incompatible with mountd. If nfse is run in native nfs.export(5) configuration file format mode, then logic of configuration looks like exports(5), but differs in some places. So, when we speak about "incompatibilities" then it is necessary to distinguish incompatibilities of "nfse native mode" vs mountd and incompatibilities of "nfse compatible mode" vs mountd. I suggest to check whether "nfse -C ..." is compatible with mountd using instructions described here: http://lists.freebsd.org/pipermail/freebsd-fs/2010-May/008421.html You do not need to install anything or modify existent system for testing. Can you try "nfse -Ct ..." and tell me whether "nfse -C ..." is compatible enough with mountd (try correct configurations and configurations with mistakes). I have list of difference somewhere, I'll try to find it.