🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #31499

CNFS utility for recovery after a crash

#31499
From: Steven Gillard
Date: Fri, 18 Sep 1998 00:00
33 lines
1888 bytes
Greetings,

After a recent system crash I had a problem where the most recent few
articles in each cycbuff file were overwritten by new articles.  In some
lesser-used buffers I lost 20 articles which equated to a day of news in
these groups.

This was caused by an un-updated free pointer in the cycbuff headers -
by default INN updates the cycbuff header on disk after each 25
articles.

I have written a utility to check and adjust the free pointer of a
cycbuff file if necessary.  This utility (which i've dubbed "cbck") can
also be used to reset a cycbuff and change the path name in the header
so you can move it in the file system.

I've found it useful (along with makehistory -r it makes INN 2.x & CNFS
recovery _almost_ complete), so i thought i'd post a message here to see
if anyone else has an interest.  If anybody wants the source, drop me a
line (remove "nojunkmail" from my email to reply).  Ideally someone will
load it on a web page or ftp site with other INN stuff.

Note that its only been tested on HPUX 10.20 and with file system
cycbuffs, but it should be portable enough (been working with hpux so
long I just cant tell any more  :-(  )

Cheers,
Steve

steven_gillard@hp.nojunkmail.com
...opinions expressed are my own...

Technical Details
Message-ID: <3601E4A4.70FA@hp.nojunkmail.com>
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!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <3601E4A4.70FA@hp.nojunkmail.com>
Subject: CNFS utility for recovery after a crash
Date: Fri, 18 Sep 1998 00:00:00 +0000
From: Steven Gillard <steven_gillard@hp.com.nojunkmail>
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!not-for-mail
X-Deja-AN: 392407105
Content-Transfer-Encoding: 7bit
Organization: Hewlett Packard
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: news.software.nntp