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        
[EMAIL PROTECTED]
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);
        }
 
        /*
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to