cvs commit: src/sys/geom/eli g_eli.c g_eli.h g_eli_ctl.c src/sbin/geom/class/eli geli.8 geom_eli.c

Pawel Jakub Dawidek pjd at FreeBSD.org
Tue Aug 30 15:27:31 GMT 2005


pjd         2005-08-30 15:27:30 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_6)
    sys/geom/eli         g_eli.c g_eli.h g_eli_ctl.c 
    sbin/geom/class/eli  geli.8 geom_eli.c 
  Log:
  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)
  
  Revision  Changes    Path
  1.2.2.3   +10 -3     src/sbin/geom/class/eli/geli.8
  1.1.2.3   +57 -23    src/sbin/geom/class/eli/geom_eli.c
  1.3.2.3   +49 -136   src/sys/geom/eli/g_eli.c
  1.1.2.3   +3 -3      src/sys/geom/eli/g_eli.h
  1.1.2.2   +21 -2     src/sys/geom/eli/g_eli_ctl.c


More information about the cvs-src mailing list