Changeset View
Changeset View
Standalone View
Standalone View
head/sys/sys/mount.h
Show First 20 Lines • Show All 510 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
struct vfsconf { | struct vfsconf { | ||||
u_int vfc_version; /* ABI version number */ | u_int vfc_version; /* ABI version number */ | ||||
char vfc_name[MFSNAMELEN]; /* filesystem type name */ | char vfc_name[MFSNAMELEN]; /* filesystem type name */ | ||||
struct vfsops *vfc_vfsops; /* filesystem operations vector */ | struct vfsops *vfc_vfsops; /* filesystem operations vector */ | ||||
int vfc_typenum; /* historic filesystem type number */ | int vfc_typenum; /* historic filesystem type number */ | ||||
int vfc_refcount; /* number mounted of this type */ | int vfc_refcount; /* number mounted of this type */ | ||||
int vfc_flags; /* permanent flags */ | int vfc_flags; /* permanent flags */ | ||||
int vfc_prison_flag; /* prison allow.mount.* flag */ | |||||
struct vfsoptdecl *vfc_opts; /* mount options */ | struct vfsoptdecl *vfc_opts; /* mount options */ | ||||
TAILQ_ENTRY(vfsconf) vfc_list; /* list of vfscons */ | TAILQ_ENTRY(vfsconf) vfc_list; /* list of vfscons */ | ||||
}; | }; | ||||
/* Userland version of the struct vfsconf. */ | /* Userland version of the struct vfsconf. */ | ||||
struct xvfsconf { | struct xvfsconf { | ||||
struct vfsops *vfc_vfsops; /* filesystem operations vector */ | struct vfsops *vfc_vfsops; /* filesystem operations vector */ | ||||
char vfc_name[MFSNAMELEN]; /* filesystem type name */ | char vfc_name[MFSNAMELEN]; /* filesystem type name */ | ||||
▲ Show 20 Lines • Show All 319 Lines • ▼ Show 20 Lines | |||||
#include <sys/module.h> | #include <sys/module.h> | ||||
/* | /* | ||||
* Version numbers. | * Version numbers. | ||||
*/ | */ | ||||
#define VFS_VERSION_00 0x19660120 | #define VFS_VERSION_00 0x19660120 | ||||
#define VFS_VERSION_01 0x20121030 | #define VFS_VERSION_01 0x20121030 | ||||
#define VFS_VERSION VFS_VERSION_01 | #define VFS_VERSION_02 0x20180504 | ||||
#define VFS_VERSION VFS_VERSION_02 | |||||
#define VFS_SET(vfsops, fsname, flags) \ | #define VFS_SET(vfsops, fsname, flags) \ | ||||
static struct vfsconf fsname ## _vfsconf = { \ | static struct vfsconf fsname ## _vfsconf = { \ | ||||
.vfc_version = VFS_VERSION, \ | .vfc_version = VFS_VERSION, \ | ||||
.vfc_name = #fsname, \ | .vfc_name = #fsname, \ | ||||
.vfc_vfsops = &vfsops, \ | .vfc_vfsops = &vfsops, \ | ||||
.vfc_typenum = -1, \ | .vfc_typenum = -1, \ | ||||
.vfc_flags = flags, \ | .vfc_flags = flags, \ | ||||
▲ Show 20 Lines • Show All 131 Lines • Show Last 20 Lines |