diff options
author | delphij <delphij@FreeBSD.org> | 2014-12-04 23:26:15 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2014-12-04 23:26:15 +0000 |
commit | d663d4263731742ddf1986691e011ef0afe01a4f (patch) | |
tree | e786a652856123052a1cb906782b935fa63ab0a2 /sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c | |
parent | f96a33a8ab3a68aab467715f8bf7b35c3559aa93 (diff) | |
download | FreeBSD-src-d663d4263731742ddf1986691e011ef0afe01a4f.zip FreeBSD-src-d663d4263731742ddf1986691e011ef0afe01a4f.tar.gz |
MFC r274674:
Add a tunable for spa_slop_shift which controls how much space we
would reserve by default. Tuning is not recommended.
Relnotes: yes
Diffstat (limited to 'sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c index 21904490..b7a9f07 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c @@ -384,6 +384,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))."); /* * ========================================================================== |