Article View: news.software.nntp
Article #38463Re: INN2 No space (spool)
From: Uwe Ohse
Date: Tue, 06 Jul 1999 00:00
Date: Tue, 06 Jul 1999 00:00
31 lines
1955 bytes
1955 bytes
Russ Allbery wrote:
>I'd accordingly call this a bug in Red Hat; we can try to come up with
>some sort of work-around, but the result is that inndf is simply not going
--- inndf.c Tue Oct 6 07:25:09 1998
+++ inndf.c.new Mon Jun 21 09:29:06 1999
@@ -81,6 +81,7 @@
#define STATSTRUC statvfs /* structure name */
#define STATAVAIL f_bavail /* blocks available */
#define STATMULTI f_frsize /* fragment size/block size */
+#define CAREFULL_STATMULTI f_bsize /* in case f_frsize is 0 */
#define STATINODE f_favail /* inodes available */
#define STATTYPES u_long /* type of f_bavail etc */
#define STATFORMT "%lu" /* format string to match */
@@ -122,8 +123,12 @@
/* this is often the same as just buf.f_bavail */
/* but we want to cope with different underlying */
/* block/fragment sizes, and avoid overflow */
+ STATTYPES x=buf.STATMULTI;
+#ifdef CAREFULL_STATMULTI
+ if (x==0) x=buf.CAREFULL_STATMULTI;
+#endif
value = (STATTYPES)
- (((double) buf.STATAVAIL * buf.STATMULTI) /
+ (((double) buf.STATAVAIL * x) /
(STATTYPES) KILOBYTES);
} else {
value = buf.STATINODE; /* simple! */
Technical Details
Message-ID:
<7lslpk$g66$1@news.nrw.net>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-mailReferences:
<375F91A4.94862B3C@eurocomercial.es> <yl674wjtr3.fsf@windlord.stanford.edu> <7js20s$2ah$1@no.spam> <yl4sjis307.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <7lslpk$g66$1@news.nrw.net> Subject: Re: INN2 No space (spool) Date: Tue, 06 Jul 1999 00:00:00 +0000 From: uwe-nsn19990706@ohse.de (Uwe Ohse) References: <375F91A4.94862B3C@eurocomercial.es> <yl674wjtr3.fsf@windlord.stanford.edu> <7js20s$2ah$1@no.spam> <yl4sjis307.fsf@windlord.stanford.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 X-Deja-AN: 497706155 X-Complaints-To: news@csl-gmbh.net X-Trace: news.nrw.net 931256948 16582 194.245.99.18 (6 Jul 1999 10:29:08 GMT) Organization: Computer Service Langenbach Newsgroups: news.software.nntp Originator: uwe@csl18.UUCP ((null))