Changeset View
Changeset View
Standalone View
Standalone View
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c
Show All 12 Lines | |||||
#include <sys/jail.h> | #include <sys/jail.h> | ||||
#include <ufs/ufs/quota.h> | #include <ufs/ufs/quota.h> | ||||
#include "zfs_comutil.h" | #include "zfs_comutil.h" | ||||
struct mtx zfs_debug_mtx; | struct mtx zfs_debug_mtx; | ||||
MTX_SYSINIT(zfs_debug_mtx, &zfs_debug_mtx, "zfs_debug", MTX_DEF); | MTX_SYSINIT(zfs_debug_mtx, &zfs_debug_mtx, "zfs_debug", MTX_DEF); | ||||
SYSCTL_NODE(_vfs, OID_AUTO, zfs, CTLFLAG_RW, 0, "ZFS file system"); | SYSCTL_NODE(_vfs, OID_AUTO, zfs, CTLFLAG_RW | CTLFLAG_MPSAFE, 0, | ||||
"ZFS file system"); | |||||
int zfs_super_owner; | int zfs_super_owner; | ||||
SYSCTL_INT(_vfs_zfs, OID_AUTO, super_owner, CTLFLAG_RW, &zfs_super_owner, 0, | SYSCTL_INT(_vfs_zfs, OID_AUTO, super_owner, CTLFLAG_RW, &zfs_super_owner, 0, | ||||
"File system owner can perform privileged operation on his file systems"); | "File system owner can perform privileged operation on his file systems"); | ||||
int zfs_debug_level; | int zfs_debug_level; | ||||
SYSCTL_INT(_vfs_zfs, OID_AUTO, debug, CTLFLAG_RWTUN, &zfs_debug_level, 0, | SYSCTL_INT(_vfs_zfs, OID_AUTO, debug, CTLFLAG_RWTUN, &zfs_debug_level, 0, | ||||
"Debug level"); | "Debug level"); | ||||
SYSCTL_NODE(_vfs_zfs, OID_AUTO, version, CTLFLAG_RD, 0, "ZFS versions"); | SYSCTL_NODE(_vfs_zfs, OID_AUTO, version, CTLFLAG_RD | CTLFLAG_MPSAFE, 0, | ||||
"ZFS versions"); | |||||
static int zfs_version_acl = ZFS_ACL_VERSION; | static int zfs_version_acl = ZFS_ACL_VERSION; | ||||
SYSCTL_INT(_vfs_zfs_version, OID_AUTO, acl, CTLFLAG_RD, &zfs_version_acl, 0, | SYSCTL_INT(_vfs_zfs_version, OID_AUTO, acl, CTLFLAG_RD, &zfs_version_acl, 0, | ||||
"ZFS_ACL_VERSION"); | "ZFS_ACL_VERSION"); | ||||
static int zfs_version_spa = SPA_VERSION; | static int zfs_version_spa = SPA_VERSION; | ||||
SYSCTL_INT(_vfs_zfs_version, OID_AUTO, spa, CTLFLAG_RD, &zfs_version_spa, 0, | SYSCTL_INT(_vfs_zfs_version, OID_AUTO, spa, CTLFLAG_RD, &zfs_version_spa, 0, | ||||
"SPA_VERSION"); | "SPA_VERSION"); | ||||
static int zfs_version_zpl = ZPL_VERSION; | static int zfs_version_zpl = ZPL_VERSION; | ||||
SYSCTL_INT(_vfs_zfs_version, OID_AUTO, zpl, CTLFLAG_RD, &zfs_version_zpl, 0, | SYSCTL_INT(_vfs_zfs_version, OID_AUTO, zpl, CTLFLAG_RD, &zfs_version_zpl, 0, | ||||
Show All 12 Lines |