Discussion:
2G file limit on RH8.0???
Clint Byrum
2004-11-05 17:40:17 UTC
Permalink
I compiled mod_log_spread with almost the default makefile (removed the
-I/usr/local/include and -L/usr/local/lib because my spread is
in /usr/lib and /usr/local/lib). However, my logging machines, both
running RH8.0, stopped writing to their files at precisely 2^31-1 (2GB
-1) bytes.

I looked at the code, and it appears to open the output file with
O_LARGEFILE. So what gives? Anyone else have this problem?
--
Clint Byrum <***@careercast.com>
Clint Byrum
2004-11-05 22:16:33 UTC
Permalink
Post by Clint Byrum
I compiled mod_log_spread with almost the default makefile (removed the
-I/usr/local/include and -L/usr/local/lib because my spread is
in /usr/lib and /usr/local/lib). However, my logging machines, both
running RH8.0, stopped writing to their files at precisely 2^31-1 (2GB
-1) bytes.
I looked at the code, and it appears to open the output file with
O_LARGEFILE. So what gives? Anyone else have this problem?
FYI, I changed the CFLAGS to have -D_FILE_OFFSET_BITS=64 in them and now
my spreadlogd's can go past 2G. I reviewed the file code in the program,
and I think everything should be fine as long as the buffer size is kept
under 64k, as the code uses an int for the file offset.
--
Clint Byrum <***@careercast.com>
Loading...