From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 11 15:10:59 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 B2D3216A421 for ; Sat, 11 Aug 2007 15:10:59 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from bunrab.catwhisker.org (adsl-63-193-123-122.dsl.snfc21.pacbell.net [63.193.123.122]) by mx1.freebsd.org (Postfix) with ESMTP id 63F4213C46C for ; Sat, 11 Aug 2007 15:10:59 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from bunrab.catwhisker.org (localhost [127.0.0.1]) by bunrab.catwhisker.org (8.13.3/8.13.3) with ESMTP id l7BFAs3e042451; Sat, 11 Aug 2007 08:10:54 -0700 (PDT) (envelope-from david@bunrab.catwhisker.org) Received: (from david@localhost) by bunrab.catwhisker.org (8.13.3/8.13.1/Submit) id l7BFAsfQ042450; Sat, 11 Aug 2007 08:10:54 -0700 (PDT) (envelope-from david) Date: Sat, 11 Aug 2007 08:10:54 -0700 From: David Wolfskill To: Dirk GOUDERS Message-ID: <20070811151054.GE77008@bunrab.catwhisker.org> Mail-Followup-To: David Wolfskill , Dirk GOUDERS , Joost Bekkers , FreeBSD-hackers@freebsd.org References: <46BC49DB.8060509@latnet.lv> <20070810161318.GX77008@bunrab.catwhisker.org> <1064.192.168.100.227.1186841549.squirrel@jodocus.org> <200708111439.l7BEdgAr045640@sora.hank.home> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="xzjdnLf1/heGxxoo" Content-Disposition: inline In-Reply-To: <200708111439.l7BEdgAr045640@sora.hank.home> User-Agent: Mutt/1.4.2.1i Cc: Joost Bekkers , 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 15:10:59 -0000 --xzjdnLf1/heGxxoo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Aug 11, 2007 at 04:39:42PM +0200, Dirk GOUDERS wrote: >=20 > > 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. > >=20 > > This would also negate the need for a new flag. >=20 > 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: >=20 > # logfilename [owner:group] mode count size when flags [/pid= _file] [sig_num] > /var/log/example.log 644 89 100 * J39 >=20 > 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. >=20 > 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. Ah -- well, then: by all means. I'm even more willing to test other folks' work than I am to hack away at code. :-} And since I had tested my own Perl script, I think I should be able to help out with this. :-) And "after Sunday" is not a problem at all: thank you! Peace, david --=20 David H. Wolfskill david@catwhisker.org Anything and everything is a (potential) cat toy. See http://www.catwhisker.org/~david/publickey.gpg for my public key. --xzjdnLf1/heGxxoo Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iEYEARECAAYFAka90X4ACgkQmprOCmdXAD1KxACeMdiWlJLw2VoQbf9n8nwtds1l twsAn2y5BI0eUh1Fc0xaN47lAj44SfXU =mA/C -----END PGP SIGNATURE----- --xzjdnLf1/heGxxoo--