cvs commit: src/sys/geom/eli g_eli.h

Pawel Jakub Dawidek pjd at FreeBSD.org
Thu Oct 6 11:17:30 PDT 2005


pjd         2005-10-06 18:17:29 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_6)
    sys/geom/eli         g_eli.h 
  Log:
  MFC:    sys/geom/eli/g_eli.h    1.4
  
  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.
  
  Reported by:    Michael Reifenberger <mike at Reifenberger.com>
  Reminded by:    delphij
  Approved by:    re (scottl)
  
  Revision  Changes    Path
  1.1.2.4   +1 -1      src/sys/geom/eli/g_eli.h


More information about the cvs-src mailing list