Skip to content

Index > 2GB unsupported #36

@flohoff

Description

@flohoff

Hi,
i am running into the issue that mairix fails on indexing because the index gets larger than 2GB. When that happens (On initial creation) the index is left a "0" bytes.

It throws an error on the "lseek" which is 32 bit only:

writer.c
106   if (sb.st_size < len) {
107     /* Extend */
108     if (lseek(fd, len - 1, SEEK_SET) < 0) {
109       report_error("lseek", filename);
110       unlock_and_exit(2);
111     }

Flo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions