Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Jan 2012 10:25:23 +0000 (UTC)
From:      Kevin Lo <kevlo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r230208 - head/sys/fs/tmpfs
Message-ID:  <201201161025.q0GAPNDq027693@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kevlo
Date: Mon Jan 16 10:25:22 2012
New Revision: 230208
URL: http://svn.freebsd.org/changeset/base/230208

Log:
  Add nfs export support to tmpfs(5)
  
  Reviewed by:	kib

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

Modified: head/sys/fs/tmpfs/tmpfs_vfsops.c
==============================================================================
--- head/sys/fs/tmpfs/tmpfs_vfsops.c	Mon Jan 16 09:53:24 2012	(r230207)
+++ head/sys/fs/tmpfs/tmpfs_vfsops.c	Mon Jan 16 10:25:22 2012	(r230208)
@@ -150,10 +150,8 @@ tmpfs_mount(struct mount *mp)
 		return (EINVAL);
 
 	if (mp->mnt_flag & MNT_UPDATE) {
-		/* XXX: There is no support yet to update file system
-		 * settings.  Should be added. */
-
-		return EOPNOTSUPP;
+		if (vfs_flagopt(mp->mnt_optnew, "export", NULL, 0))
+			return (0);
 	}
 
 	vn_lock(mp->mnt_vnodecovered, LK_SHARED | LK_RETRY);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201161025.q0GAPNDq027693>