Lines Matching defs:opt2
201 vfs_equalopts(const char *opt1, const char *opt2)
206 if (strcmp(opt1, opt2) == 0)
209 if (strncmp(opt1, "no", 2) == 0 && strcmp(opt1 + 2, opt2) == 0)
212 if (strncmp(opt2, "no", 2) == 0 && strcmp(opt1, opt2 + 2) == 0)
215 !strncmp(opt1, opt2, ++p - opt1)) {
216 opt2 += p - opt1;
219 if (strncmp(opt1, "no", 2) == 0 && strcmp(opt1 + 2, opt2) == 0)
222 if (strncmp(opt2, "no", 2) == 0 && strcmp(opt1, opt2 + 2) == 0)
227 (vfs_isopt_ro(opt2) || vfs_isopt_rw(opt2)))
240 struct vfsopt *opt, *opt2, *tmp;
243 opt2 = TAILQ_PREV(opt, vfsoptlist, link);
244 while (opt2 != NULL) {
245 if (vfs_equalopts(opt->name, opt2->name)) {
246 tmp = TAILQ_PREV(opt2, vfsoptlist, link);
247 vfs_freeopt(opts, opt2);
248 opt2 = tmp;
250 opt2 = TAILQ_PREV(opt2, vfsoptlist, link);