Lines Matching refs:opt2
257 vfs_equalopts(const char *opt1, const char *opt2) in vfs_equalopts() argument
262 if (strcmp(opt1, opt2) == 0) in vfs_equalopts()
265 if (strncmp(opt1, "no", 2) == 0 && strcmp(opt1 + 2, opt2) == 0) in vfs_equalopts()
268 if (strncmp(opt2, "no", 2) == 0 && strcmp(opt1, opt2 + 2) == 0) in vfs_equalopts()
271 !strncmp(opt1, opt2, ++p - opt1)) { in vfs_equalopts()
272 opt2 += p - opt1; in vfs_equalopts()
275 if (strncmp(opt1, "no", 2) == 0 && strcmp(opt1 + 2, opt2) == 0) in vfs_equalopts()
278 if (strncmp(opt2, "no", 2) == 0 && strcmp(opt1, opt2 + 2) == 0) in vfs_equalopts()
283 (vfs_isopt_ro(opt2) || vfs_isopt_rw(opt2))) in vfs_equalopts()
296 struct vfsopt *opt, *opt2, *tmp; in vfs_sanitizeopts() local
299 opt2 = TAILQ_PREV(opt, vfsoptlist, link); in vfs_sanitizeopts()
300 while (opt2 != NULL) { in vfs_sanitizeopts()
301 if (vfs_equalopts(opt->name, opt2->name)) { in vfs_sanitizeopts()
302 tmp = TAILQ_PREV(opt2, vfsoptlist, link); in vfs_sanitizeopts()
303 vfs_freeopt(opts, opt2); in vfs_sanitizeopts()
304 opt2 = tmp; in vfs_sanitizeopts()
306 opt2 = TAILQ_PREV(opt2, vfsoptlist, link); in vfs_sanitizeopts()