🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #41425

Re: dexpireover and locked files

#41425
From: Nickolai Zeldovich
Date: Tue, 09 Nov 1999 00:00
20 lines
1483 bytes
In article <akXV3.4078$rK2.292624@ptah.visi.com>, Mike Horwath wrote:
>If the reader forks have them open read-only, why can't dexpireover
>update the files?

Because dexpireover needs an exclusive (aka write) lock on over and
data files in order to rewrite them. Reading those files in the middle
of a rewrite will give inconsistent information.

>Kind of weird, the dreaderd could be updated easily enough (guess I'll
>have to try it :) to watch for an update to occur.

I suppose some sort of cooperation could be implemented between dexpireover
and dreaderd, such that dexpireover will ask dreaderd to release any read
locks if it runs across some file it cannot write-lock.. Would be a nice
feature to have.

-- Nickolai Zeldovich.


Technical Details
Message-ID: <slrn82gk8j.clb.kolya@quickstation-macgregor.mit.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!not-for-mail
References: <slrn82bjqi.s4q.kolya@hodge-podge.mit.edu> <VikV3.3334$rK2.226378@ptah.visi.com> <slrn82fg4c.1ma.kolya@SEVEN-UP.MIT.EDU> <akXV3.4078$rK2.292624@ptah.visi.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrn82gk8j.clb.kolya@quickstation-macgregor.mit.edu>
Subject: Re: dexpireover and locked files
Date: Tue, 09 Nov 1999 00:00:00 +0000
From: kolya@MIT.EDU (Nickolai Zeldovich)
References: <slrn82bjqi.s4q.kolya@hodge-podge.mit.edu> <VikV3.3334$rK2.226378@ptah.visi.com> <slrn82fg4c.1ma.kolya@SEVEN-UP.MIT.EDU> <akXV3.4078$rK2.292624@ptah.visi.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
X-Deja-AN: 546501131
X-Trace: dreaderd 942166291 16027 18.239.0.167
Reply-To: kolya@MIT.EDU
Newsgroups: news.software.nntp