diff options
author | mm <mm@FreeBSD.org> | 2012-11-25 16:54:43 +0000 |
---|---|---|
committer | mm <mm@FreeBSD.org> | 2012-11-25 16:54:43 +0000 |
commit | 4c80c5ff2f77168ed92ba8b0535e07fad9e2a68a (patch) | |
tree | d1bda98f9556c42df1d8705d4715d21ec592d0b3 /sys/cddl/contrib | |
parent | 3a0bfecf052237768517963f169d0797e2978f59 (diff) | |
download | FreeBSD-src-4c80c5ff2f77168ed92ba8b0535e07fad9e2a68a.zip FreeBSD-src-4c80c5ff2f77168ed92ba8b0535e07fad9e2a68a.tar.gz |
Add loader(8) tunable to enable/disable nopwrite functionality:
vfs.zfs.nopwrite_enabled
MFC after: 2 weeks
Diffstat (limited to 'sys/cddl/contrib')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu.c index 15d41f6..3167d42 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu.c @@ -50,6 +50,10 @@ * Enable/disable nopwrite feature. */ int zfs_nopwrite_enabled = 1; +SYSCTL_DECL(_vfs_zfs); +TUNABLE_INT("vfs.zfs.nopwrite_enabled", &zfs_nopwrite_enabled); +SYSCTL_INT(_vfs_zfs, OID_AUTO, nopwrite_enabled, CTLFLAG_RDTUN, + &zfs_nopwrite_enabled, 0, "Enable nopwrite feature"); const dmu_object_type_info_t dmu_ot[DMU_OT_NUMTYPES] = { { DMU_BSWAP_UINT8, TRUE, "unallocated" }, @@ -1562,7 +1566,6 @@ dmu_object_set_compress(objset_t *os, uint64_t object, uint8_t compress, int zfs_mdcomp_disable = 0; TUNABLE_INT("vfs.zfs.mdcomp_disable", &zfs_mdcomp_disable); -SYSCTL_DECL(_vfs_zfs); SYSCTL_INT(_vfs_zfs, OID_AUTO, mdcomp_disable, CTLFLAG_RW, &zfs_mdcomp_disable, 0, "Disable metadata compression"); |