Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Jan 2012 01:25:53 +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: r230252 - head/sys/fs/tmpfs
Message-ID:  <201201170125.q0H1PrlJ061058@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



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