Linus Arver <linusa@xxxxxxxxxx> writes: > So in summary there appear to be the following possibilities: > > CHUNK_MISSING > CHUNK_TOO_SMALL > CHUNK_OK > CHUNK_TOO_BIG_ALIGNED > CHUNK_TOO_BIG_MISALIGNED On second thought, it appears that CHUNK_TOO_SMALL has three cases: (1) chunk_size < record_size (2) chunk_size >= record_size, but chunk_size < record_size * record_nr and decreasing record_nr can make chunk_size "fit" (3) chunk_size >= record_size, but chunk_size < record_size * record_nr and decreasing record_nr cannot make chunk_size "fit" where (2) and (3) are just like the *_(MIS)ALIGNED cases above when chunk_size is too big. My default position is that these additional cases might need to be treated differently, although maybe it's overkill also. Thanks.