summaryrefslogtreecommitdiffstats
path: root/sys/fs/devfs
diff options
context:
space:
mode:
authormm <mm@FreeBSD.org>2012-02-29 16:16:36 +0000
committermm <mm@FreeBSD.org>2012-02-29 16:16:36 +0000
commitba775c1d2cf6395d777fdc670cdfc4e8b8abb691 (patch)
tree994ae19fedbdc336735ebef7d8a599111aed2ea0 /sys/fs/devfs
parent3f374b0489be09aedaf7ae0ad2ceddca2664464f (diff)
downloadFreeBSD-src-ba775c1d2cf6395d777fdc670cdfc4e8b8abb691.zip
FreeBSD-src-ba775c1d2cf6395d777fdc670cdfc4e8b8abb691.tar.gz
Add "export" to devfs_opts[] and return EOPNOTSUPP if called with it.
Fixes mountd warnings. Reported by: kib MFC after: 1 week
Diffstat (limited to 'sys/fs/devfs')
-rw-r--r--sys/fs/devfs/devfs_vfsops.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/fs/devfs/devfs_vfsops.c b/sys/fs/devfs/devfs_vfsops.c
index f73b229..c0407eb 100644
--- a/sys/fs/devfs/devfs_vfsops.c
+++ b/sys/fs/devfs/devfs_vfsops.c
@@ -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)) {
OpenPOWER on IntegriCloud