diff options
author | mm <mm@FreeBSD.org> | 2012-02-09 10:09:12 +0000 |
---|---|---|
committer | mm <mm@FreeBSD.org> | 2012-02-09 10:09:12 +0000 |
commit | 27a58a0dde89f99954c275fce42e656d2c5a7cbf (patch) | |
tree | dbeb835f14a88b3d6a3b043db2ed23b39f0d5275 /sys/fs/devfs/devfs.h | |
parent | 0fd71d974ef947d1cda47ec787a9f307bc4ba8ad (diff) | |
download | FreeBSD-src-27a58a0dde89f99954c275fce42e656d2c5a7cbf.zip FreeBSD-src-27a58a0dde89f99954c275fce42e656d2c5a7cbf.tar.gz |
Introduce the "ruleset=number" option for devfs(5) mounts.
Add support for updating the devfs mount (currently only changing the
ruleset number is supported).
Check mnt_optnew with vfs_filteropt(9).
This new option sets the specified ruleset number as the active ruleset
of the new devfs mount and applies all its rules at mount time. If the
specified ruleset doesn't exist, a new empty ruleset is created.
MFC after: 1 month
Diffstat (limited to 'sys/fs/devfs/devfs.h')
-rw-r--r-- | sys/fs/devfs/devfs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/fs/devfs/devfs.h b/sys/fs/devfs/devfs.h index d148f8e..d77baa8 100644 --- a/sys/fs/devfs/devfs.h +++ b/sys/fs/devfs/devfs.h @@ -182,6 +182,8 @@ void devfs_rules_apply(struct devfs_mount *, struct devfs_dirent *); void devfs_rules_cleanup(struct devfs_mount *); int devfs_rules_ioctl(struct devfs_mount *, u_long, caddr_t, struct thread *); +void devfs_ruleset_set(devfs_rsnum rsnum, struct devfs_mount *dm); +void devfs_ruleset_apply(struct devfs_mount *dm); int devfs_allocv(struct devfs_dirent *, struct mount *, int, struct vnode **); char *devfs_fqpn(char *, struct devfs_mount *, struct devfs_dirent *, |