Author: kevlo
Date: Tue Jan 17 01:25:53 2012
New Revision: 230252
URL: http://svn.freebsd.org/changeset/base/230252

Log:
  Return EOPNOTSUPP since we only support update mounts for NFS export.
  
  Spotted by:   trociny

Modified:
  head/sys/fs/tmpfs/tmpfs_vfsops.c

Modified: head/sys/fs/tmpfs/tmpfs_vfsops.c
==============================================================================
--- head/sys/fs/tmpfs/tmpfs_vfsops.c    Tue Jan 17 01:18:40 2012        
(r230251)
+++ head/sys/fs/tmpfs/tmpfs_vfsops.c    Tue Jan 17 01:25:53 2012        
(r230252)
@@ -150,8 +150,12 @@ tmpfs_mount(struct mount *mp)
                return (EINVAL);
 
        if (mp->mnt_flag & MNT_UPDATE) {
+               /*
+                * Only support update mounts for NFS export.
+                */
                if (vfs_flagopt(mp->mnt_optnew, "export", NULL, 0))
                        return (0);
+               return (EOPNOTSUPP);
        }
 
        vn_lock(mp->mnt_vnodecovered, LK_SHARED | LK_RETRY);
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to