vfsops
struct vfsops *vfsops = NULL;
vfsops = vfc->vfc_vfsops;
KKASSERT(vfsops->vfs_mount != NULL);
KKASSERT(vfsops->vfs_root != NULL);
KKASSERT(vfsops->vfs_unmount != NULL);
if (vfsops->vfs_root == NULL) {
vfsops->vfs_root = vfs_stdroot;
if (vfsops->vfs_start == NULL) {
vfsops->vfs_start = vfs_stdstart;
if (vfsops->vfs_quotactl == NULL) {
vfsops->vfs_quotactl = vfs_stdquotactl;
if (vfsops->vfs_statfs == NULL) {
vfsops->vfs_statfs = vfs_stdstatfs;
if (vfsops->vfs_statvfs == NULL) {
vfsops->vfs_statvfs = vfs_stdstatvfs;
if (vfsops->vfs_sync == NULL) {
vfsops->vfs_sync = vfs_stdnosync;
if (vfsops->vfs_vget == NULL) {
vfsops->vfs_vget = vfs_stdvget;
if (vfsops->vfs_fhtovp == NULL) {
vfsops->vfs_fhtovp = vfs_stdfhtovp;
if (vfsops->vfs_checkexp == NULL) {
vfsops->vfs_checkexp = vfs_stdcheckexp;
if (vfsops->vfs_vptofh == NULL) {
vfsops->vfs_vptofh = vfs_stdvptofh;
if (vfsops->vfs_init == NULL) {
vfsops->vfs_init = vfs_stdinit;
if (vfsops->vfs_uninit == NULL) {
vfsops->vfs_uninit = vfs_stduninit;
if (vfsops->vfs_extattrctl == NULL) {
vfsops->vfs_extattrctl = vfs_stdextattrctl;
if (vfsops->vfs_ncpgen_set == NULL) {
vfsops->vfs_ncpgen_set = vfs_stdncpgen_set;
if (vfsops->vfs_ncpgen_test == NULL) {
vfsops->vfs_ncpgen_test = vfs_stdncpgen_test;
if (vfs_quota_enabled && vfsops->vfs_acinit == NULL) {
vfsops->vfs_acinit = vfs_stdac_init;
if (vfs_quota_enabled && vfsops->vfs_acdone == NULL) {
vfsops->vfs_acdone = vfs_stdac_done;
if (vfsops->vfs_modifying == NULL) {
vfsops->vfs_modifying = vfs_stdmodifying;
mount_init(struct mount *mp, struct vfsops *ops)
struct vfsops *mnt_op; /* operations on fs */
struct vfsops *vfc_vfsops; /* filesystem operations vector */
#define VFS_SET(vfsops, fsname, flags) \
&vfsops, \
struct vfsops;
void mount_init(struct mount *mp, struct vfsops *ops);
static struct vfsops autofs_vfsops = {
static struct vfsops devfs_vfsops = {
static struct vfsops dirfs_vfsops = {
SDT_PROBE2(ext2fs, , vfsops, ext2_cg_validate_error,
SDT_PROBE2(ext2fs, , vfsops, ext2_cg_validate_error,
SDT_PROBE2(ext2fs, , vfsops, ext2_cg_validate_error,
SDT_PROBE2(ext2fs, , vfsops, ext2_cg_validate_error,
SDT_PROBE2(ext2fs, , vfsops, ext2_cg_validate_error,
SDT_PROBE2(ext2fs, , vfsops, ext2_cg_validate_error,
SDT_PROBE2(ext2fs, , vfsops, ext2_cg_validate_error,
SDT_PROBE2(ext2fs, , vfsops, ext2_cg_validate_error,
SDT_PROBE2(ext2fs, , vfsops, ext2_cg_validate_error,
SDT_PROBE1(ext2fs, , vfsops, ext2_compute_sb_data_error,
SDT_PROBE1(ext2fs, , vfsops, ext2_compute_sb_data_error,
SDT_PROBE1(ext2fs, , vfsops, ext2_compute_sb_data_error,
SDT_PROBE1(ext2fs, , vfsops, ext2_compute_sb_data_error,
SDT_PROBE1(ext2fs, , vfsops, ext2_compute_sb_data_error,
SDT_PROBE1(ext2fs, , vfsops, ext2_compute_sb_data_error,
SDT_PROBE1(ext2fs, , vfsops, ext2_compute_sb_data_error,
SDT_PROBE1(ext2fs, , vfsops, ext2_compute_sb_data_error,
SDT_PROBE1(ext2fs, , vfsops, ext2_compute_sb_data_error,
SDT_PROBE1(ext2fs, , vfsops, ext2_compute_sb_data_error,
SDT_PROBE1(ext2fs, , vfsops, ext2_compute_sb_data_error,
SDT_PROBE1(ext2fs, , vfsops, ext2_compute_sb_data_error,
SDT_PROBE1(ext2fs, , vfsops, ext2_compute_sb_data_error,
SDT_PROBE1(ext2fs, , vfsops, ext2_compute_sb_data_error,
SDT_PROBE1(ext2fs, , vfsops, ext2_compute_sb_data_error,
SDT_PROBE1(ext2fs, , vfsops, ext2_compute_sb_data_error,
SDT_PROBE1(ext2fs, , vfsops, ext2_compute_sb_data_error,
SDT_PROBE1(ext2fs, , vfsops, ext2_compute_sb_data_error,
SDT_PROBE_DEFINE2(ext2fs, , vfsops, trace, "int", "char*");
SDT_PROBE_DEFINE2(ext2fs, , vfsops, ext2_cg_validate_error, "char*", "int");
SDT_PROBE_DEFINE1(ext2fs, , vfsops, ext2_compute_sb_data_error, "char*");
static struct vfsops ext2fs_vfsops = {
static struct vfsops fuse_vfsops = {
static struct vfsops hammer_vfsops = {
static struct vfsops hammer2_vfsops = {
static struct vfsops hpfs_vfsops = {
static struct vfsops cd9660_vfsops = {
static struct vfsops mfs_vfsops = {
static struct vfsops msdosfs_vfsops = {
static struct vfsops nfs_vfsops = {
static struct vfsops ntfs_vfsops = {
static struct vfsops null_vfsops = {
static struct vfsops procfs_vfsops = {
static struct vfsops smbfs_vfsops = {
static struct vfsops tmpfs_vfsops = {
static struct vfsops udf_vfsops = {
static struct vfsops ufs_vfsops = {
#define VFS_SET(vfsops, fsname, flags) struct __hack