svn commit: r220937 - head/sys/kern

Jaakko Heinonen jh at FreeBSD.org
Fri Apr 22 07:50:00 UTC 2011


(jamie@ Cc'd because kern_jail.c also uses the vfsopt framework.)

On 2011-04-22, Jaakko Heinonen wrote:
> + * XXX: This function will keep a "nofoo" option in the new
> + * options.  E.g, if the option's canonical name is "foo",
> + * "nofoo" ends up in the mount point's active options.

I have a follow-up patch which adds a flags field to the vfsopt struct
and changes vfs_filteropt() to mark options which should not become
active but only cancel other options with a flag. This allows
vfs_mergeopts() to know which options should be made active.

With these changes we can remove the "foo" -> "nonofoo" conversions from
vfs_donmount() for options whose canonical name starts with "no".

The patch:

	http://people.freebsd.org/~jh/patches/nmount-VFSOPT_CANCELONLY.diff

-- 
Jaakko


More information about the svn-src-all mailing list