src/sys/kern/vfs_mount.c
/*
 * If a mount option is specified several times,
 * (with or without the "no" prefix) only keep
 * the last occurrence of it.
 */
If a mount option is specified several times,
(with or without the "no" prefix) only keep
the last occurrence of it.
If a mount option is specified several times ( with or without the " no " prefix ) only keep the last occurrence of it .
static void
vfs_sanitizeopts(struct vfsoptlist *opts)
{
	struct vfsopt *opt, *opt2, *tmp;
	TAILQ_FOREACH_REVERSE(opt, opts, vfsoptlist, link) {
		opt2 = TAILQ_PREV(opt, vfsoptlist, link);
		while (opt2 != NULL) {
			if (vfs_equalopts(opt->name, opt2->name)) {
				tmp = TAILQ_PREV(opt2, vfsoptlist, link);
				vfs_freeopt(opts, opt2);
				opt2 = tmp;
			} else {
				opt2 = TAILQ_PREV(opt2, vfsoptlist, link);
			}
		}
	}
}
static void vfs_sanitizeopts ( struct vfsoptlist * opts ) { struct vfsopt * opt , * opt2 , * tmp ; TAILQ_FOREACH_REVERSE ( opt , opts , vfsoptlist , link ) { opt2 = TAILQ_PREV ( opt , vfsoptlist , link ) ; while ( opt2 != NULL ) { if ( vfs_equalopts ( opt -> name , opt2 -> name ) ) { tmp = TAILQ_PREV ( opt2 , vfsoptlist , link ) ; vfs_freeopt ( opts , opt2 ) ; opt2 = tmp ; } else { opt2 = TAILQ_PREV ( opt2 , vfsoptlist , link ) ; } } } }
If a mount option is specified several times,
 (with or without the "no" prefix) only keep
 the last occurrence of it.
If a mount option is specified several times ( with or without the " no " prefix ) only keep the last occurrence of it .