25 Apr
2003
25 Apr
'03
4:43 a.m.
On Fri, 2003-04-25 at 04:34, Timo Sirainen wrote:
Got it, the struct sizes aren't padded to 8 bytes but Dovecot wants that. So it pads them while writing, but the reading part is a bit too pedantic and wants exact sizes. For now the easiest fix is to configure --with-mem-align=4. I changed configure to do this automatically now with 32bit file offsets. Have to fix this properly later..
Or actually maybe I should fix it properly now. This breaks if pointers are 64bit but off_t is 32bit, and CPU doesn't want to do unaligned memory accesses..
Index files should probably have separate alignment behaviour since it can't contain pointers. off_t is likely to be the only possible 64bit value in it.