Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Nov 2012 16:54:43 +0000 (UTC)
From:      Martin Matuska <mm@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r243525 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Message-ID:  <201211251654.qAPGshis094407@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mm
Date: Sun Nov 25 16:54:43 2012
New Revision: 243525
URL: http://svnweb.freebsd.org/changeset/base/243525

Log:
  Add loader(8) tunable to enable/disable nopwrite functionality:
  vfs.zfs.nopwrite_enabled
  
  MFC after:	2 weeks

Modified:
  head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu.c

Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu.c	Sun Nov 25 16:32:07 2012	(r243524)
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu.c	Sun Nov 25 16:54:43 2012	(r243525)
@@ -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, ui
 
 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");
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211251654.qAPGshis094407>