Date: Mon, 6 Feb 2012 19:40:16 +0200 From: Jaakko Heinonen <jh@FreeBSD.org> To: Martin Matuska <mm@FreeBSD.org> Cc: freebsd-fs@FreeBSD.org Subject: Re: [CFR][DEVFS] Add "ruleset" mount option Message-ID: <20120206174016.GA2270@a91-153-116-96.elisa-laajakaista.fi> In-Reply-To: <4F2F9CB9.3040000@FreeBSD.org> References: <4F2F9CB9.3040000@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2012-02-06, Martin Matuska wrote:
> The attached patch adds a "ruleset" mount option to devfs mounts.
> + if (mp->mnt_optnew != NULL &&
> + vfs_getopt(mp->mnt_optnew, "ruleset", NULL, NULL) == 0) {
> + if (vfs_scanopt(mp->mnt_optnew, "ruleset", "%d",
> + &rsnum) != 1) {
> + vfs_mount_error(mp, "%s",
> + "invalid ruleset specification");
> + return (EINVAL);
> + }
> + }
The "ruleset" mount option will persist after the devfs_mount() call. It
will get out of sync if the ruleset is later changed with the devfs
command.
devfs_mount() seems to miss a vfs_filteropt(9) call.
--
Jaakko
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120206174016.GA2270>
