svn commit: r271785 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Will Andrews
will at FreeBSD.org
Thu Sep 18 16:38:04 UTC 2014
Author: will
Date: Thu Sep 18 16:38:03 2014
New Revision: 271785
URL: http://svnweb.freebsd.org/changeset/base/271785
Log:
Reorder sysctls for spa.c global tunables; add sysctl for ccw_retry_interval.
MFC after: 1 month
Sponsored by: Spectra Logic
Modified:
head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c
Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c Thu Sep 18 16:20:17 2014 (r271784)
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c Thu Sep 18 16:38:03 2014 (r271785)
@@ -83,16 +83,20 @@
/* Check hostid on import? */
static int check_hostid = 1;
-SYSCTL_DECL(_vfs_zfs);
-SYSCTL_INT(_vfs_zfs, OID_AUTO, check_hostid, CTLFLAG_RWTUN, &check_hostid, 0,
- "Check hostid on import?");
-
/*
* The interval, in seconds, at which failed configuration cache file writes
* should be retried.
*/
static int zfs_ccw_retry_interval = 300;
+SYSCTL_DECL(_vfs_zfs);
+SYSCTL_INT(_vfs_zfs, OID_AUTO, check_hostid, CTLFLAG_RWTUN, &check_hostid, 0,
+ "Check hostid on import?");
+TUNABLE_INT("vfs.zfs.ccw_retry_interval", &zfs_ccw_retry_interval);
+SYSCTL_INT(_vfs_zfs, OID_AUTO, ccw_retry_interval, CTLFLAG_RW,
+ &zfs_ccw_retry_interval, 0,
+ "Configuration cache file write, retry after failure, interval (seconds)");
+
typedef enum zti_modes {
ZTI_MODE_FIXED, /* value is # of threads (min 1) */
ZTI_MODE_BATCH, /* cpu-intensive; value is ignored */
More information about the svn-src-all
mailing list