freeradius2.1.6| buffered-sql | acctstoptime problems

Alan DeKok aland at deployingradius.com
Tue Sep 1 17:27:23 CEST 2009


Alan Buxey wrote:
>>   It would need to (somehow) mark each record in the detail file as
>> "handled".  Ideally, without breaking the existing format, OR using any
>> extra bytes on the disk.
> 
> can it not throw away the data from the detail.work as it completes it? 

  Er... how?  It's a text file on the disk.  There's no way of saying
"re-set the start of the file to be 10K ahead of where it is now".

  File *truncation* is supported in POSIX.  But truncating from the
start of the file isn't in POSIX.

  Hmmm... maybe over-writing it with spaces would work... or something
else might go wrong.

  But really, if it's going to be tweaked, it should probably be
redesigned from the ground up.

  Alan DeKok.



More information about the Freeradius-Users mailing list