Re: data.tmp: file too big [SOLVED]

Mark Johnson <[email protected]>
Newsgroups gmane.network.djbdns
Message-ID <[email protected]>
On Tue, May 19, 2009 at 3:31 PM, Mark Johnson <[email protected]> wrote:
> Something else to try, if you really need > 2G cdb file in a 32-bit
> environment, might be to change cdb.c to *not* mmap the cdb file.
> According to this bit of cdb_init (cdb.c):
>
>  if (fstat(fd,&st) == 0)
>    if (st.st_size <= 0xffffffff) {
>      x = mmap(0,st.st_size,PROT_READ,MAP_SHARED,fd,0);
>      if (x + 1) {
>        c->size = st.st_size;
>        c->map = x;
>      }
>    }
>
> it won't mmap the file if it's > 4G?

Though I suppose cdb files are limited to 4G due to the uint32 positions.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.