svn commit: r232307 - head/sys/fs/devfs
Martin Matuska
mm at FreeBSD.org
Wed Feb 29 16:16:36 UTC 2012
Author: mm
Date: Wed Feb 29 16:16:36 2012
New Revision: 232307
URL: http://svn.freebsd.org/changeset/base/232307
Log:
Add "export" to devfs_opts[] and return EOPNOTSUPP if called with it.
Fixes mountd warnings.
Reported by: kib
MFC after: 1 week
Modified:
head/sys/fs/devfs/devfs_vfsops.c
Modified: head/sys/fs/devfs/devfs_vfsops.c
==============================================================================
--- head/sys/fs/devfs/devfs_vfsops.c Wed Feb 29 16:16:00 2012 (r232306)
+++ head/sys/fs/devfs/devfs_vfsops.c Wed Feb 29 16:16:36 2012 (r232307)
@@ -58,7 +58,7 @@ static vfs_root_t devfs_root;
static vfs_statfs_t devfs_statfs;
static const char *devfs_opts[] = {
- "from", "ruleset", NULL
+ "from", "export", "ruleset", NULL
};
/*
@@ -91,6 +91,9 @@ devfs_mount(struct mount *mp)
if (vfs_filteropt(mp->mnt_optnew, devfs_opts))
return (EINVAL);
+ if (vfs_flagopt(mp->mnt_optnew, "export", NULL, 0))
+ return (EOPNOTSUPP);
+
if (vfs_getopt(mp->mnt_optnew, "ruleset", NULL, NULL) == 0 &&
(vfs_scanopt(mp->mnt_optnew, "ruleset", "%d",
&rsnum) != 1 || rsnum < 0 || rsnum > 65535)) {
More information about the svn-src-head
mailing list