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