Changeset View
Changeset View
Standalone View
Standalone View
head/sys/kern/vfs_init.c
Show All 36 Lines | |||||
*/ | */ | ||||
#include <sys/cdefs.h> | #include <sys/cdefs.h> | ||||
__FBSDID("$FreeBSD$"); | __FBSDID("$FreeBSD$"); | ||||
#include <sys/param.h> | #include <sys/param.h> | ||||
#include <sys/systm.h> | #include <sys/systm.h> | ||||
#include <sys/fnv_hash.h> | #include <sys/fnv_hash.h> | ||||
#include <sys/jail.h> | |||||
#include <sys/kernel.h> | #include <sys/kernel.h> | ||||
#include <sys/linker.h> | #include <sys/linker.h> | ||||
#include <sys/mount.h> | #include <sys/mount.h> | ||||
#include <sys/proc.h> | #include <sys/proc.h> | ||||
#include <sys/sx.h> | #include <sys/sx.h> | ||||
#include <sys/syscallsubr.h> | #include <sys/syscallsubr.h> | ||||
#include <sys/sysctl.h> | #include <sys/sysctl.h> | ||||
#include <sys/vnode.h> | #include <sys/vnode.h> | ||||
▲ Show 20 Lines • Show All 218 Lines • ▼ Show 20 Lines | vfs_register(struct vfsconf *vfc) | ||||
if (vfsops->vfs_uninit == NULL) | if (vfsops->vfs_uninit == NULL) | ||||
/* file system specific uninitialisation */ | /* file system specific uninitialisation */ | ||||
vfsops->vfs_uninit = vfs_stduninit; | vfsops->vfs_uninit = vfs_stduninit; | ||||
if (vfsops->vfs_extattrctl == NULL) | if (vfsops->vfs_extattrctl == NULL) | ||||
/* extended attribute control */ | /* extended attribute control */ | ||||
vfsops->vfs_extattrctl = vfs_stdextattrctl; | vfsops->vfs_extattrctl = vfs_stdextattrctl; | ||||
if (vfsops->vfs_sysctl == NULL) | if (vfsops->vfs_sysctl == NULL) | ||||
vfsops->vfs_sysctl = vfs_stdsysctl; | vfsops->vfs_sysctl = vfs_stdsysctl; | ||||
if (vfc->vfc_flags & VFCF_JAIL) | |||||
prison_add_vfs(vfc); | |||||
/* | /* | ||||
* Call init function for this VFS... | * Call init function for this VFS... | ||||
*/ | */ | ||||
(*(vfc->vfc_vfsops->vfs_init))(vfc); | (*(vfc->vfc_vfsops->vfs_init))(vfc); | ||||
vfsconf_unlock(); | vfsconf_unlock(); | ||||
/* | /* | ||||
* If this filesystem has a sysctl node under vfs | * If this filesystem has a sysctl node under vfs | ||||
▲ Show 20 Lines • Show All 85 Lines • Show Last 20 Lines |