Date: Fri, 26 May 2006 11:57:27 -0400 From: Craig Rodrigues <rodrigc@crodrigues.org> To: Pawel Jakub Dawidek <pjd@FreeBSD.org> Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/fs/udf udf_vfsops.c Message-ID: <20060526155727.GA2033@crodrigues.org> In-Reply-To: <20060526144533.GC1165@garage.freebsd.pl> References: <200605260121.k4Q1LqLd098354@repoman.freebsd.org> <44766E9B.6030000@samsco.org> <20060526033840.GA9864@crodrigues.org> <20060526144533.GC1165@garage.freebsd.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
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
[-- Attachment #2 --]
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);
}
/*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060526155727.GA2033>
