[Dnsmasq-discuss] dnsmasq isn't happy when log file reaches 2GB?

Simon Kelley simon at thekelleys.org.uk
Sat Mar 29 12:03:02 GMT 2008


Paul Chambers wrote:
> Rune Kock wrote:
> 
>>On Fri, Mar 28, 2008 at 1:34 AM, Paul Chambers <bod at bod.org> wrote:
>>  
>>
>>>Does dnsmasq have a problem when the file it's logging to reaches two
>>> gigabytes?
>>>    
>>
>>Are you using FAT or some equally horrible file system?
>>  
> 
> noooo.... I'm not that big an idiot ;)  it's an ext3 filesystem, on a 
> 3ware RAID card.

Looks like, on Linux, we need to open the file with O_LARGEFILE. From 
"man 2 open":

O_LARGEFILE
               (LFS) Allow files whose sizes cannot be represented in an 
off_t (but can be represented in an off64_t) to be opened.


I'll add the fix.

Cheers,

Simon.




More information about the Dnsmasq-discuss mailing list