From owner-freebsd-fs@FreeBSD.ORG Fri May 7 14:06:48 2010 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8F6F01065672 for ; Fri, 7 May 2010 14:06:48 +0000 (UTC) (envelope-from simon@comsys.ntu-kpi.kiev.ua) Received: from comsys.ntu-kpi.kiev.ua (comsys.kpi.ua [77.47.192.42]) by mx1.freebsd.org (Postfix) with ESMTP id 11E208FC1F for ; Fri, 7 May 2010 14:06:47 +0000 (UTC) Received: from pm513-1.comsys.kpi.ua ([10.18.52.101] helo=pm513-1.comsys.ntu-kpi.kiev.ua) by comsys.ntu-kpi.kiev.ua with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1OANYQ-0000gT-Gw for freebsd-fs@freebsd.org; Fri, 07 May 2010 16:25:22 +0300 Received: by pm513-1.comsys.ntu-kpi.kiev.ua (Postfix, from userid 1001) id 0AE971CC44; Fri, 7 May 2010 16:25:23 +0300 (EEST) Date: Fri, 7 May 2010 16:25:22 +0300 From: Andrey Simonenko To: freebsd-fs@freebsd.org Message-ID: <20100507132522.GA67068@pm513-1.comsys.ntu-kpi.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-Authenticated-User: simon@comsys.ntu-kpi.kiev.ua X-Authenticator: plain X-Invalid-HELO: Host impersonating [comsys.ntu-kpi.kiev.ua] X-Sender-Verify: SUCCEEDED (sender exists & accepts mail) X-Exim-Version: 4.63 (build at 06-Jan-2007 23:14:37) X-Date: 2010-05-07 16:25:22 X-Connected-IP: 10.18.52.101:31192 X-Message-Linecount: 66 X-Body-Linecount: 54 X-Message-Size: 2420 X-Body-Size: 1914 Subject: CFT: nfse compatible mode with mountd (NFS exports file) 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: Fri, 07 May 2010 14:06:48 -0000 Hello, NFSE is a new NFS exports support for FreeBSD 9.0-CURRENT and 8.0-STABLE. NFSE distribution consists of changes for the regular and experimental NFS servers and the nfse utility. The nfse utility uses new NFS exports file format that looks like exports(5), but has different semantics of export entities. Also nfse has the compatible mode with mountd that allows to continue to use existent configurations for NFS exports. I made tests on my NFS exports configurations to verify correctness of the compatible mode with mountd, but want to ask other administrators to check nfse with their exports(5) files. Only compilation of the userland program is required, even if you run nfse with wrong options under root privileges it will not modify any NFS exports settings in the kernel, since it uses a new API. How to check: 1. FreeBSD 8.0 or 9.0 is required. 2. Download new version of NFSE updates from http://nfse.sourceforge.net/ 3. Build nfse using the TESTING-BUILD script (result in usr.sbin/nfse/). 4. Run "nfse -Ct /etc/exports" and compare output with your exports(5) file and your understanding of your NFS exports settings (nfse program should be run on the NFS server, it should see mount points). 5. Send me results of testing with comments if possible (here or in a private message). Example (/home is a mount point of some file system): % cat exports /home/simon 1.2.3.4 % ./nfse -Ct exports configure: reading file exports configure: converting configuration to native format Pathname /home Export specifications: -rw -sec sys -maproot=-2:-2 -host 1.2.3.4 Subdirectories for NFSv2/3: /home/simon -host 1.2.3.4 Warning: subdirectories exports are insecure % Since NFS server exports file systems, then here there is one export of file system /home and one administrative subdirectory export from this file system for NFSv2/3 clients.