K 10 svn:author V 3 pjd K 8 svn:date V 27 2005-08-30T15:27:30.000000Z K 7 svn:log V 1109 MFC: sys/geom/eli/g_eli.c 1.6-11 sys/geom/eli/g_eli.h 1.3-4 sys/geom/eli/g_eli_ctl.c 1.2 sbin/geom/class/eli/geli.8 1.4-6 sbin/geom/class/eli/geom_eli.c 1.3 Sync with HEAD: - We don't need to clear allocated memory. This will speed-up things a bit. - Even if crypto_dispatch() return an error, request is not canceled and our callback will still be called, just to tell us that requested failed... - Always run dedicated kernel thread (even when we have hardware support). There is no performance impact, but allows to allocate memory with M_WAITOK flag. As a side effect this simplify code a bit. - Allow to change number of iterations for PKCS#5v2. It can only be used when there is only one key set. - Add a __packed keyword to g_eli_metadata struct definition, so sizeof(struct g_eli_metadata) will return the exact number of bytes needed for storing it on the disk. Without this change GELI was unusable on amd64 (and probably other 64-bit archs), because sizeof(struct g_eli_metadata) was greater than 512 bytes and geli(8) was failing on assertion. Approved by: re (scottl) END