Lines Matching refs:trans_size
968 const void *data, unsigned int trans_size,
973 const unsigned int size = trans_size - sizeof(struct mail_transaction_header);
996 } else if (tail_offset > file->sync_offset + trans_size) {
999 tail_offset, file->sync_offset + trans_size);
1031 uint32_t trans_size;
1033 trans_size = mail_index_offset_to_uint32(hdr->size);
1034 i_assert(trans_size != 0);
1078 count = (trans_size - sizeof(*hdr)) / sizeof(*rec);
1086 end = CONST_PTR_OFFSET(data, trans_size - sizeof(*hdr));
1172 uint32_t trans_size;
1179 trans_size = mail_index_offset_to_uint32(hdr->size);
1180 if (trans_size < sizeof(*hdr) ||
1181 *offset - file->buffer_offset + trans_size > file->buffer->used) {
1185 *offset, trans_size, hdr->type);
1189 *offset += trans_size;
1373 unsigned int trans_size, const char **error_r)
1388 trans_size, error_r);
1397 file->index_deleted_offset = file->sync_offset + trans_size;
1404 file->index_undeleted_offset = file->sync_offset + trans_size;
1425 file->max_tail_offset += trans_size;
1438 uint32_t trans_size = 0;
1458 trans_size = mail_index_offset_to_uint32(hdr->size);
1459 if (trans_size == 0) {
1463 if (trans_size < sizeof(*hdr)) {
1465 "hdr.size too small (%u)", trans_size);
1470 if (file->sync_offset - file->buffer_offset + trans_size > size)
1474 if ((ret = log_file_track_sync(file, hdr, trans_size, reason_r)) <= 0) {
1480 file->sync_offset += trans_size;