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

Pawel Jakub Dawidek pjd at FreeBSD.org
Sat Aug 20 10:43:03 GMT 2005


pjd         2005-08-20 10:43:03 UTC

  FreeBSD src repository

  Modified files:
    sys/geom/eli         g_eli.h 
  Log:
  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>
  MFC after:      3 days
  
  Revision  Changes    Path
  1.4       +1 -1      src/sys/geom/eli/g_eli.h


More information about the cvs-src mailing list