🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #191

Re: Two queries regarding C-News (one of which also hits rn)

#191
From: Rob McMahon
Date: Sat, 29 Jun 1991 12:56
42 lines
2567 bytes
In article <CMM.0.88.678044489.francis@wolfman.cis.ohio-state.edu>
francis@cis.ohio-state.edu (RD Francis) writes: 
>rn users have, on two or three separate occasions now, been told that all of
>their newsgroups were bogus, and been unsubscribed from everything.  I
>suspect that this has occurred at the same time as I've been running addgroup
>(and maybe delgroup).

One reason I know for this is NFS.  If you remove a file from the server while
a client has it open, all operations on the file will fail with ESTALE.  So
programs that update the file in place are fine, as are programs which do

	<create active.new>
	rm -f active.old
	ln active active.old &&	mv active.new active

the *first* time.  If you repeat this, however, the file which an `rn' running
on a client has open no longer exists, and it panics and thinks all the groups
have been removed.

`Addgroup' uses the first method, `delgroup' uses the second method, and cause
this problem (well in fact it does `mv active active.old ; mv active.tmp
active': wouldn't the above be better ? (no time when active doesn't exist)).
`Expire' and `upact', but I think not `updatemin', also do this which can
cause trouble if you leave rn running overnight.

The real solution must be to change rn to notice that read operations are
failing, and to close and reread the active file.  Another solution would be
to use something like

	ln active "active.keep/`date`.$$"

instead, and mopup after all "reasonable" rn's should have exited (a day or
two ?).

Cheers,

Rob
-- 
UUCP:   ...!mcsun!ukc!warwick!cudcv	PHONE:  +44 203 523037
JANET:  cudcv@uk.ac.warwick             INET:   cudcv@warwick.ac.uk
Rob McMahon, Computing Services, Warwick University, Coventry CV4 7AL, England
Technical Details
Message-ID: <=05{_AC@warwick.ac.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!spool.mu.edu!uunet!mcsun!ukc!warwick!cudcv
References: <CMM.0.88.678044489.francis@wolfman.cis.ohio-state.edu>

Show Full Headers
Complete Article Headers
Message-ID: <=05{_AC@warwick.ac.uk>
Subject: Re: Two queries regarding C-News (one of which also hits rn)
Date: Sat, 29 Jun 1991 12:56:40 +0000
From: cudcv@warwick.ac.uk (Rob McMahon)
References: <CMM.0.88.678044489.francis@wolfman.cis.ohio-state.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!spool.mu.edu!uunet!mcsun!ukc!warwick!cudcv
Newsgroups: news.software.b,news.software.readers
Article-I.D.: warwick.=05{_AC
Sender: news@warwick.ac.uk (Network news)
Organization: Computing Services, Warwick University, UK
Lines: 41
Nntp-Posting-Host: shark