aboutsummaryrefslogtreecommitdiff
path: root/sys/fs/devfs
diff options
context:
space:
mode:
authorMartin Matuska <mm@FreeBSD.org>2012-02-29 16:16:36 +0000
committerMartin Matuska <mm@FreeBSD.org>2012-02-29 16:16:36 +0000
commitb362f0a78b9750de9610936d447fbd86b1d6dee6 (patch)
tree994ae19fedbdc336735ebef7d8a599111aed2ea0 /sys/fs/devfs
parent37a1046e61b6b3213ebfdafb8e4857615d6a657d (diff)
Notes
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 f73b229efa814..c0407eb920da9 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)) {