Thread View: news.software.nntp
1 messages
1 total messages
Started by Felix Schueller
Tue, 19 Jun 2001 14:04
[inn] Problems with cnfs-spool after system-crash
Author: Felix Schueller
Date: Tue, 19 Jun 2001 14:04
Date: Tue, 19 Jun 2001 14:04
36 lines
2531 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads