rocesses 658937 very fine for me :-) Thx. On Fri, Apr 19, 2002 at 05:19:33PM +0200, Balazs Scheidler wrote:
On Fri, Apr 19, 2002 at 04:15:29PM +0300, Jussi Silvennoinen wrote:
Hello,
I'm having a problem with largefile-support with syslog-ng 1.5.16 on redhat 7.2 with all all updates as of April 19 installed. Log-partition is a 300gb hardware raid5 through an AMI Megaraid Elite 1600, filesystem is XFS dated 2002-03-04 with latest userspace-utils installed.
Please try this patch:
diff -u -r1.49 affile.c --- affile.c 2002/04/12 07:42:16 1.49 +++ affile.c 2002/04/19 15:17:36 @@ -260,9 +260,9 @@ int fd, flags;
if (self->owner->flags & AFFILE_PIPE) - flags = O_RDWR | O_NOCTTY | O_NONBLOCK; + flags = O_RDWR | O_NOCTTY | O_NONBLOCK | O_LARGEFILE; else - flags = O_WRONLY | O_CREAT | O_APPEND | O_NOCTTY | O_NONBLOCK; + flags = O_WRONLY | O_CREAT | O_APPEND | O_NOCTTY | O_NONBLOCK | O_LARGEFILE;
if (self->owner->remove_if_older > 0) { /* remove (=unlink) if file is more than XXX days old */ diff -u -r1.21 syslog-ng.h --- syslog-ng.h 2002/04/03 08:37:02 1.21 +++ syslog-ng.h 2002/04/19 15:18:56 @@ -56,7 +56,7 @@ extern int strcasecmp(const char *s1, const char *s2); #endif
-#ifndef HAVE_O_LARGEFILE +#if !HAVE_O_LARGEFILE #undef O_LARGEFILE #define O_LARGEFILE 0 #endif
-- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
_______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng
-- Jerome Peducasse Wanadoo Portails - Sophia Antipolis