🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #59009

Re: reset ~news/bin/cnfsstats

#59009
From: Thomas
Date: Wed, 29 May 2002 18:56
20 lines
1726 bytes
Russ Allbery wrote:

> I'm not sure I know what you're asking, but at a guess, purging all of
> your CNFS buffers will do this.  You can reset a CNFS buffer by erasing
> the first 1024 bytes of it or so; something like:
> 
>     dd if=/dev/zero of=/path/to/cycbuff bs=1024 count=1

There's a piece of code in contrib/ that I believe wipes 1/4096th of the 
buffer and then 25K.

That figure also seemed to match the output of cnfsstat, as to where it 
was positioned in the file before accepting any articles.

Didn't dig further - it is quick enough anyway.


Thomas

Technical Details
Message-ID: <3CF52461.7060503@spam.invalid>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-han1.dfn.de!news-lei1.dfn.de!newsfeed.freenet.de!amsnews01.chello.com!amstwist00.POSTED!not-for-mail
References: <ad0ku1$hau$1@news2.cavtel.net> <ylit57aknp.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <3CF52461.7060503@spam.invalid>
Subject: Re: reset ~news/bin/cnfsstats
Date: Wed, 29 May 2002 20:56:33 +0200
From: Thomas <zak@spam.invalid>
References: <ad0ku1$hau$1@news2.cavtel.net> <ylit57aknp.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-han1.dfn.de!news-lei1.dfn.de!newsfeed.freenet.de!amsnews01.chello.com!amstwist00.POSTED!not-for-mail
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc3) Gecko/20020523
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: news.software.nntp
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 19
NNTP-Posting-Host: 24.132.6.5
X-Complaints-To: abuse@chello.com
X-Trace: amstwist00 1022698593 24.132.6.5 (Wed, 29 May 2002 20:56:33 MET DST)
NNTP-Posting-Date: Wed, 29 May 2002 20:56:33 MET DST