| 2108 | } |
| 2109 | |
| 2110 | int |
| 2111 | vfs_flagopt(struct vfsoptlist *opts, const char *name, uint64_t *w, |
| 2112 | uint64_t val) |
| 2113 | { |
| 2114 | struct vfsopt *opt; |
| 2115 | |
| 2116 | TAILQ_FOREACH(opt, opts, link) { |
| 2117 | if (strcmp(name, opt->name) == 0) { |
| 2118 | opt->seen = 1; |
| 2119 | if (w != NULL) |
| 2120 | *w |= val; |
| 2121 | return (1); |
| 2122 | } |
| 2123 | } |
| 2124 | if (w != NULL) |
| 2125 | *w &= ~val; |
| 2126 | return (0); |
| 2127 | } |
| 2128 | |
| 2129 | int |
| 2130 | vfs_scanopt(struct vfsoptlist *opts, const char *name, const char *fmt, ...) |
no test coverage detected