1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-31 16:57:10 +00:00

Add a remark on a questionable property of vfs_mergeopts().

This commit is contained in:
Yaroslav Tykhiy 2008-02-18 10:10:42 +00:00
parent 42d94d1358
commit 37ed722f78
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=176383

View File

@ -327,6 +327,13 @@ vfs_buildopts(struct uio *auio, struct vfsoptlist **options)
/*
* Merge the old mount options with the new ones passed
* in the MNT_UPDATE case.
*
* XXX This function will keep a "nofoo" option in the
* new options if there is no matching "foo" option
* to be cancelled in the old options. This is a bug
* if the option's canonical name is "foo". E.g., "noro"
* shouldn't end up in the mount point's active options,
* but it can.
*/
static void
vfs_mergeopts(struct vfsoptlist *toopts, struct vfsoptlist *opts)