Date: Wed, 29 Feb 2012 16:16:36 +0000 (UTC) From: Martin Matuska <mm@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r232307 - head/sys/fs/devfs Message-ID: <201202291616.q1TGGa6f034585@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201202291616.q1TGGa6f034585>