Aligning structures on disk

For some reason, I feel likes it necessary when allocating disk storage space inside CouchDb that it has to be aligned to a power-of-two boundary. It's seem likes that's necessary somehow, but I think it's just a carry-over from writing Compute and having to deal with memory alignment problems. I can't think of any reason disk storage should have alignment issues, I think even 1 Byte alignment is fine. Yet somehow it feels wrong.

Posted April 19, 2005 1:39 AM