🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #52922

[inn] Problems with cnfs-spool after system-crash

#52922
From: Felix Schueller
Date: Tue, 19 Jun 2001 14:04
36 lines
2531 bytes
Hi,

I was running an Inn 2.3.[01] on a linux 2.2.18 kernel with glibc 2.0.7.
But after every systemcrash (if someone had switched the power of or so)
I had problems with the CNFS-buffers. All postings witch came in between
the last shutdown of inn and the crash were absent.

So I looked into cnfs.c to find a solution for my problem. And in cnfs.c
I found the variable "MMAP_NEEDS_MSYNC". 'man 2 msync' says:

|msync flushes changes made to the in-core copy of a file that was
|mapped into memory using mmap(2) back to disk. Without use of this call
|there is no guarantee that changes are written back before munmap(2) is
|called.

But the configure script of inn says that msync is not needed and sets
'#undef MMAP_NEEDS_MSYNC' in config.h. I think that can be the failure.
So I put '#define MMAP_NEEDS_MSYNC 1' manually in config.h to test it.

But unfortunately (or fortunately) I had no crashs during the last
months. And meanwhile I updated my system and now its a linux 2.4.3 with
glibc 2.2.2 and Inn 2.3.2. 

And now on sunday a thunderstorm caused a short powerbreak witch crashed
my computer. And after rebooting the system all postings were in the
cnfs-buffers even postings I've written just minutes before. Only a run
of makehistory was necessary. Now unfortunately I don't know exactly why
the problem occurs befor and not now. I think its the Problem with msync
but due to my systemchange I'm not sure. And I have no possibility to
check this. 

Can anyone confirm or disprove this?

TIA & Cu
  Felix
Technical Details
Message-ID: <slrn9iumv5.d5q.fschueller@fschueller.cologne.de>
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!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.infostrada.it!fu-berlin.de!uni-berlin.de!f-25-209.cvx-koln.ipdial.viaginterkom.DE!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <slrn9iumv5.d5q.fschueller@fschueller.cologne.de>
Subject: [inn] Problems with cnfs-spool after system-crash
Date: Tue, 19 Jun 2001 14:04:21 +0000
From: fschueller@netcologne.de (Felix Schueller)
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!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.infostrada.it!fu-berlin.de!uni-berlin.de!f-25-209.cvx-koln.ipdial.viaginterkom.DE!not-for-mail
Newsgroups: news.software.nntp
Organization: The slrn web-ressource -> http://www.slrn.org/
Lines: 35
NNTP-Posting-Host: f-25-209.cvx-koln.ipdial.viaginterkom.de (62.180.209.25)
X-Trace: fu-berlin.de 992959644 10519922 62.180.209.25 (16 [2795])
X-Orig-Path: fschueller.cologne.de!not-for-mail
User-Agent: slrn/0.9.7.1 (Linux)