From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 11 14:35:45 2007 Return-Path: Delivered-To: FreeBSD-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A542E16A41A for ; Sat, 11 Aug 2007 14:35:45 +0000 (UTC) (envelope-from gouders@et.bocholt.fh-gelsenkirchen.de) Received: from alice.et.bocholt.fh-ge.de (alice.et.bocholt.fh-gelsenkirchen.de [193.175.197.63]) by mx1.freebsd.org (Postfix) with ESMTP id 1641C13C46A for ; Sat, 11 Aug 2007 14:35:44 +0000 (UTC) (envelope-from gouders@et.bocholt.fh-gelsenkirchen.de) Received: from musashi.et.bocholt.fh-gelsenkirchen.de (musashi.et.bocholt.fh-gelsenkirchen.de [193.175.197.95]) by alice.et.bocholt.fh-ge.de (8.13.7/8.13.7) with ESMTP id l7BEZUvN025195 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 11 Aug 2007 16:35:31 +0200 Received: from sora.hank.home ([10.8.0.6]) by musashi.et.bocholt.fh-gelsenkirchen.de (8.14.1/8.14.1) with ESMTP id l7BEZE8u076977; Sat, 11 Aug 2007 16:35:14 +0200 (CEST) (envelope-from hank@et.bocholt.fh-gelsenkirchen.de) Received: from localhost (localhost.hank.home [127.0.0.1]) by sora.hank.home (8.14.1/8.14.1) with ESMTP id l7BEdgAr045640; Sat, 11 Aug 2007 16:39:42 +0200 (CEST) (envelope-from hank@sora.hank.home) Message-Id: <200708111439.l7BEdgAr045640@sora.hank.home> To: "Joost Bekkers" , "David Wolfskill" In-reply-to: <1064.192.168.100.227.1186841549.squirrel@jodocus.org> References: <46BC49DB.8060509@latnet.lv> <20070810161318.GX77008@bunrab.catwhisker.org> <1064.192.168.100.227.1186841549.squirrel@jodocus.org> Comments: In-reply-to "Joost Bekkers" message dated "Sat, 11 Aug 2007 16:12:29 +0200." Date: Sat, 11 Aug 2007 16:39:42 +0200 From: Dirk GOUDERS X-Bounce: 0/8 X-Scanned-By: MIMEDefang 2.57 on 192.168.0.63 Cc: FreeBSD-hackers@freebsd.org Subject: Re: [PATCH] newsyslog - don't compress first log file X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Aug 2007 14:35:45 -0000 > We could extend the 'count' field to accept 'N+M'. N being the number of > plain log files and M the number of compressed ones. > > This would also negate the need for a new flag. It could also be done with a numerical flag "n" where n is a number that specifies the extension of the logfile up to which no compression should be done. An example configfile entry for 90 rotate logs and 40 uncompressed ones would look as follows: # logfilename [owner:group] mode count size when flags [/pid_file] [sig_num] /var/log/example.log 644 89 100 * J39 I already implemented that approach and am currently testing it. When finished, I will post a patch so that David can try it, but that will not happen before Sunday, because I am a little bit busy with other things. Most of the changes handle the compressed and uncompressed logs and it will be little work to modify it for the N+M count-field approach. Dirk