From owner-freebsd-arch Fri Feb 14 17:25: 3 2003 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E04BA37B401 for ; Fri, 14 Feb 2003 17:25:01 -0800 (PST) Received: from smtp-relay.omnis.com (smtp-relay.omnis.com [216.239.128.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 785FC43FA3 for ; Fri, 14 Feb 2003 17:25:01 -0800 (PST) (envelope-from wes@softweyr.com) Received: from salty.rapid.stbernard.com (corp-2.ipinc.com [199.245.188.2]) by smtp-relay.omnis.com (Postfix) with ESMTP id BFC7642DA6; Fri, 14 Feb 2003 17:25:00 -0800 (PST) From: Wes Peters Organization: Softweyr.com To: Terry Lambert , Gordon Tetlow Subject: Re: syslog.conf syntax change (multiple program/host specifications) Date: Fri, 14 Feb 2003 17:25:00 -0800 User-Agent: KMail/1.5 Cc: Garance A Drosihn , arch@FreeBSD.ORG References: <20030210114930.GB90800@melusine.cuivre.fr.eu.org> <20030214220145.GM83215@roark.gnf.org> <3E4D7C2B.DDFC9DBE@mindspring.com> In-Reply-To: <3E4D7C2B.DDFC9DBE@mindspring.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200302141725.00421.wes@softweyr.com> Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Friday 14 February 2003 15:30, Terry Lambert wrote: > > Only newsyslog is stupid. > > No matter what options you gave it, the first thing it would do is > the moral equivalent of -F. > > So instead of a 60M Samba log file "/var/log/samba", you ended up > with a "/var/log/samba.1" that was 60M, and a "/var/log/samba" > that was empty. The real problem we're looking at is that ftruncate(2) doesn't take a third argument describing which end you want to truncate at. Such a facility would end this argument quickly, syslog could simply truncate the first (filesize - desired log size) bytes of the file and be done with it. Short of getting ufs2 to provide frag blocks at both ends of the file, this is about as good as it gets. I'll get my -current system up this weekend and have a patch to review in a few days. -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC wes@softweyr.com http://softweyr.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message