aboutsummaryrefslogtreecommitdiff
path: root/sys/geom/eli/g_eli.c
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2010-09-23 11:19:48 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2010-09-23 11:19:48 +0000
commitb35bfe7e10fb19013bc4d5256f688f55d71f6a30 (patch)
treec15c432923b31d6e233d01b8bfdcfb118b75bc6e /sys/geom/eli/g_eli.c
parent6c4ea4081378998b350ee2865d87e7c3677e0922 (diff)
downloadsrc-b35bfe7e10fb19013bc4d5256f688f55d71f6a30.tar.gz
src-b35bfe7e10fb19013bc4d5256f688f55d71f6a30.zip
Define default overwrite count, so that userland can use it.
MFC after: 1 week
Notes
Notes: svn path=/head/; revision=213062
Diffstat (limited to 'sys/geom/eli/g_eli.c')
-rw-r--r--sys/geom/eli/g_eli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/eli/g_eli.c b/sys/geom/eli/g_eli.c
index eb10b172fd99..4bcce3d41efa 100644
--- a/sys/geom/eli/g_eli.c
+++ b/sys/geom/eli/g_eli.c
@@ -69,7 +69,7 @@ TUNABLE_INT("kern.geom.eli.visible_passphrase", &g_eli_visible_passphrase);
SYSCTL_UINT(_kern_geom_eli, OID_AUTO, visible_passphrase, CTLFLAG_RW,
&g_eli_visible_passphrase, 0,
"Turn on echo when entering the passphrase (for debug purposes only!!)");
-u_int g_eli_overwrites = 5;
+u_int g_eli_overwrites = G_ELI_OVERWRITES;
TUNABLE_INT("kern.geom.eli.overwrites", &g_eli_overwrites);
SYSCTL_UINT(_kern_geom_eli, OID_AUTO, overwrites, CTLFLAG_RW, &g_eli_overwrites,
0, "Number of times on-disk keys should be overwritten when destroying them");