svn commit: r274674 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Xin LI
delphij at FreeBSD.org
Tue Nov 18 18:52:39 UTC 2014
Author: delphij
Date: Tue Nov 18 18:52:38 2014
New Revision: 274674
URL: https://svnweb.freebsd.org/changeset/base/274674
Log:
Add a tunable for spa_slop_shift which controls how much space we
would reserve by default. Tuning is not recommended.
MFC after: 2 weeks
Modified:
head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c
Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c Tue Nov 18 18:40:01 2014 (r274673)
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c Tue Nov 18 18:52:38 2014 (r274674)
@@ -401,6 +401,9 @@ zfs_deadman_init()
* See also the comments in zfs_space_check_t.
*/
int spa_slop_shift = 5;
+SYSCTL_INT(_vfs_zfs, OID_AUTO, spa_slop_shift, CTLFLAG_RWTUN,
+ &spa_slop_shift, 0,
+ "Shift value of reserved space (1/(2^spa_slop_shift)).");
/*
* ==========================================================================
More information about the svn-src-all
mailing list