From owner-cvs-src@FreeBSD.ORG Fri May 26 15:57:31 2006 Return-Path: X-Original-To: cvs-src@freebsd.org Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BE00316A67D; Fri, 26 May 2006 15:57:31 +0000 (UTC) (envelope-from rodrigc@crodrigues.org) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [216.148.227.151]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5683143D7F; Fri, 26 May 2006 15:57:30 +0000 (GMT) (envelope-from rodrigc@crodrigues.org) Received: from c-24-147-19-128.hsd1.ma.comcast.net (c-71-233-168-2.hsd1.ma.comcast.net[71.233.168.2](misconfigured sender)) by comcast.net (rwcrmhc11) with ESMTP id <20060526155728m1100k1ppfe>; Fri, 26 May 2006 15:57:29 +0000 Received: from c-24-147-19-128.hsd1.ma.comcast.net (localhost [127.0.0.1]) by c-24-147-19-128.hsd1.ma.comcast.net (8.13.6/8.13.1) with ESMTP id k4QFvSZb002042; Fri, 26 May 2006 11:57:28 -0400 (EDT) (envelope-from rodrigc@c-24-147-19-128.hsd1.ma.comcast.net) Received: (from rodrigc@localhost) by c-24-147-19-128.hsd1.ma.comcast.net (8.13.6/8.13.1/Submit) id k4QFvR9V002041; Fri, 26 May 2006 11:57:27 -0400 (EDT) (envelope-from rodrigc) Date: Fri, 26 May 2006 11:57:27 -0400 From: Craig Rodrigues To: Pawel Jakub Dawidek Message-ID: <20060526155727.GA2033@crodrigues.org> References: <200605260121.k4Q1LqLd098354@repoman.freebsd.org> <44766E9B.6030000@samsco.org> <20060526033840.GA9864@crodrigues.org> <20060526144533.GC1165@garage.freebsd.pl> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="5vNYLRcllDrimb99" Content-Disposition: inline In-Reply-To: <20060526144533.GC1165@garage.freebsd.pl> User-Agent: Mutt/1.4.2.1i Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/fs/udf udf_vfsops.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 May 2006 15:57:38 -0000 --5vNYLRcllDrimb99 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, May 26, 2006 at 04:45:33PM +0200, Pawel Jakub Dawidek wrote: > But as I suspect, it is still not possible to NFS export nullfs? Hi, I don't know much about nullfs. Can you try the following patch, and try it with the latest -CURRENT? -- Craig Rodrigues rodrigc@crodrigues.org --5vNYLRcllDrimb99 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="a.txt" Index: null_vfsops.c =================================================================== RCS file: /home/ncvs/src/sys/fs/nullfs/null_vfsops.c,v retrieving revision 1.77 diff -u -u -r1.77 null_vfsops.c --- null_vfsops.c 10 Feb 2006 18:06:49 -0000 1.77 +++ null_vfsops.c 26 May 2006 15:55:22 -0000 @@ -89,8 +89,13 @@ * Update is a no-op */ if (mp->mnt_flag & MNT_UPDATE) { - return (EOPNOTSUPP); - /* return VFS_MOUNT(MOUNTTONULLMOUNT(mp)->nullm_vfs, path, data, ndp, td);*/ + /* + * Only support update mounts for NFS export. + */ + if (vfs_flagopt(mp->mnt_optnew, "export", NULL, 0)) { + return (0); + else + return (EOPNOTSUPP); } /* --5vNYLRcllDrimb99--