Article View: news.software.nntp
Article #38825Re: INN2 No space (spool)
From: John Doe
Date: Sat, 24 Jul 1999 00:00
Date: Sat, 24 Jul 1999 00:00
50 lines
2508 bytes
2508 bytes
I know that this is a patch for INN 2.2 to fix a bug with the nightly
news.daily report that show no available free space, but how do I
apply it? Forgive me, I'm a newbie.
John
On 06 Jul 1999 05:55:07 -0700, Russ Allbery <rra@stanford.edu> wrote:
>[ 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! */
Technical Details
Message-ID:
<379a088b.217210269@news.pompano.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> <7lslpk$g66$1@news.nrw.net> <ylu2risztg.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <379a088b.217210269@news.pompano.net> Subject: Re: INN2 No space (spool) Date: Sat, 24 Jul 1999 00:00:00 +0000 From: jdoe@aol.com (John Doe) 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> <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-mail X-Deja-AN: 504592992 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii MIME-Version: 1.0 NNTP-Posting-Date: Fri, 23 Jul 1999 20:29:09 EDT Newsgroups: news.software.nntp