httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Erenkrantz <>
Subject Largefile support?
Date Wed, 26 Dec 2001 23:04:43 GMT
jerenkrantz@kiwi% ls -l access_log
-rw-r--r--   1 jerenkrantz other    2147484642 Dec 26 14:49 access_log

Yes, I'm a slacker and I don't rotate my logs.  This introduced 
an interesting problem though.

When the server got rebooted, httpd refused to start since the
file was over the 2GB limit:

[Wed Dec 26 14:40:10 2001] [error] (79)Value too large for defined data
type: could not open transfer log file

However, simply adding:

oflags |= O_LARGEFILE;

to apr_file_open makes it happy.  Any drawbacks to doing this
for all files?  I'd imagine that APR should hide largefile
support if at all possible.  And, I suppose it would need to 
be protected with some autoconf magic for those platforms 
without largefile support.  -- justin

View raw message