summaryrefslogtreecommitdiffstats
path: root/sys/modules/geom
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2011-04-21 13:31:43 +0000
committerpjd <pjd@FreeBSD.org>2011-04-21 13:31:43 +0000
commit7e657fb243221cb5e19b84eea2d3c3fbb33872f2 (patch)
treee629481143e0cfe9a038347228212cae293b3d49 /sys/modules/geom
parent9e319712527975803ad2e903a7f8398e4c4cf275 (diff)
downloadFreeBSD-src-7e657fb243221cb5e19b84eea2d3c3fbb33872f2.zip
FreeBSD-src-7e657fb243221cb5e19b84eea2d3c3fbb33872f2.tar.gz
Instead of allocating memory for all the keys at device attach,
create reasonably large cache for the keys that is filled when needed. The previous version was problematic for very large providers (hundreds of terabytes or serval petabytes). Every terabyte of data needs around 256kB for keys. Make the default cache limit big enough to fit all the keys needed for 4TB providers, which will eat at most 1MB of memory. MFC after: 2 weeks
Diffstat (limited to 'sys/modules/geom')
-rw-r--r--sys/modules/geom/geom_eli/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/modules/geom/geom_eli/Makefile b/sys/modules/geom/geom_eli/Makefile
index ec71a32..51d821a 100644
--- a/sys/modules/geom/geom_eli/Makefile
+++ b/sys/modules/geom/geom_eli/Makefile
@@ -8,6 +8,7 @@ SRCS+= g_eli_crypto.c
SRCS+= g_eli_ctl.c
SRCS+= g_eli_integrity.c
SRCS+= g_eli_key.c
+SRCS+= g_eli_key_cache.c
SRCS+= g_eli_privacy.c
SRCS+= pkcs5v2.c
SRCS+= vnode_if.h
OpenPOWER on IntegriCloud