bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rollover translator


From: Alfred M. Szmidt
Subject: Re: rollover translator
Date: Sun, 31 Oct 2004 09:09:02 +0100

   Unfortunatly, I'm having trouble thinking off an easy way to do the
   what I want, i.e. I want to specify a translator the way you say
   above an always have the last 100M of log messages.  So, the point
   of my incorherence is that instead of the file rolling over, I just
   want the file to discard anything but that last X bytes put into
   the file and never lose the last X bytes put into the file.

I like this idea too, for real log files this has more sense.  But I
am not sure at all how one would go about to implement.

When one writes N bytes to the file when at the end of the file, one
would somehow have to remove the N top bytes, and push all contents up
N bytes and then start writting those N bytes.  And this would have to
be done all the time when writting.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]