Article View: news.software.nntp
Article #38457Re: INN2 No space (spool)
From: Russ Allbery
Date: Tue, 06 Jul 1999 00:00
Date: Tue, 06 Jul 1999 00:00
42 lines
2163 bytes
2163 bytes
[ Posted and mailed. ]
Uwe Ohse <uwe-nsn19990706@ohse.de> writes:
> 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
Thanks for the patch! Forwarded to inn-patches@isc.org. (The below was
written by Uwe Ohse, but I removed the quoting to make it easier to
apply.)
--- 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! */
--
Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Technical Details
Message-ID:
<ylu2risztg.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-mailReferences:
<375F91A4.94862B3C@eurocomercial.es> <yl674wjtr3.fsf@windlord.stanford.edu> <7js20s$2ah$1@no.spam> <yl4sjis307.fsf@windlord.stanford.edu> <7lslpk$g66$1@news.nrw.net>Show Full Headers
Complete Article Headers
Message-ID: <ylu2risztg.fsf@windlord.stanford.edu> Subject: Re: INN2 No space (spool) Date: Tue, 06 Jul 1999 00:00:00 +0000 From: Russ Allbery <rra@stanford.edu> References: <375F91A4.94862B3C@eurocomercial.es> <yl674wjtr3.fsf@windlord.stanford.edu> <7js20s$2ah$1@no.spam> <yl4sjis307.fsf@windlord.stanford.edu> <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-mail X-Deja-AN: 497738285 To: inn-patches@isc.org Organization: The Eyrie Newsgroups: news.software.nntp