diff options
Diffstat (limited to 'sys/kern/vfs_mount.c')
| -rw-r--r-- | sys/kern/vfs_mount.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c index ef757b825bab..8604e31606a3 100644 --- a/sys/kern/vfs_mount.c +++ b/sys/kern/vfs_mount.c @@ -197,6 +197,17 @@ vfs_freeopts(struct vfsoptlist *opts) free(opts, M_MOUNT); } +void +vfs_deleteopt(struct vfsoptlist *opts, const char *name) +{ + struct vfsopt *opt, *temp; + + TAILQ_FOREACH_SAFE(opt, opts, link, temp) { + if (strcmp(opt->name, name) == 0) + vfs_freeopt(opts, opt); + } +} + /* * Check if options are equal (with or without the "no" prefix). */ |
