no largefile support for Solaris character devices!
Pål Baltzersen
pal.baltzersen at ost.eltele.no
Sat Feb 19 11:42:39 UTC 2000
> Even though passing --with-largefiles to INN 2.2.2's configure
> causes storage/cnfs/cnfs.c to be compiled with the right options to
> enable largefile support on Solaris 2.6 (that is,
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64), my 8GB CNFS buffer
> failed with seek errors when it hit 2GB.
Works on Solaris 7, not on 2.6.
Though with 2.2.2, as just mentoned on this list, you shold probably also apply this:
*** innd/his.c.orig Sat Dec 26 17:16:10 1998
--- innd/his.c Fri Feb 18 18:57:49 2000
***************
*** 86,92 ****
for files freopen()-ed in append mode according to POSIX 1003.1.
ftell() is used later on to determine a new article's offset
in the history file. Fopen() uses freopen() internally. */
! if (fseek(HISwritefp, 0L, SEEK_END) == -1) {
syslog(L_FATAL, "cant fseek to end of %s %m", HIShistpath);
exit(1);
}
--- 86,92 ----
for files freopen()-ed in append mode according to POSIX 1003.1.
ftell() is used later on to determine a new article's offset
in the history file. Fopen() uses freopen() internally. */
! if (fseeko(HISwritefp, (OFFSET_T)0, SEEK_END) == -1) {
syslog(L_FATAL, "cant fseek to end of %s %m", HIShistpath);
exit(1);
}
Pål
-------------------------------------------------------------
Addr: Pål Baltzersen, ElTele Øst AS, Fredrik Selmers vei 2,
P.O. Box 6299 Etterstad, N-0603 Oslo, Norway
Phone: +47 23 18 10 00 Direct: +47 23 18 11 74
Fax: +47 23 18 10 01 Mobile: +47 93 08 11 74
Mail: pb at ost.eltele.no pal.baltzersen at ost.eltele.no
More information about the inn-workers
mailing list