🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #46391

Re: Diablo spool

#46391
From: Kjetil Torgrim Homme
Date: Thu, 11 May 2000 00:00
34 lines
1720 bytes
[Joe Greco]

>   If you need a correct and current snapshot, holler and it will
>   find its way to you.

The 20000503-03 snapshot doesn't look correct to me.

    void
    LoadSlotDir(time_t t, int forceCreate)
    {
        uint32 gmt = t / 60;

        gmt = gmt - gmt % 10;

Now gmt will always end in 0, i.e. be divisible by 10.

        if (LSTime == 0 || gmt != LSTime) {
            char path[256];

            snprintf(path, sizeof(path), "%s", PatExpand(SpoolHomePat));
            if (DiabloSpoolDirs > 0) {
                    snprintf(path + strlen(path), sizeof(path) - strlen(path),
			     "/N.%02x/D.%08x",
			     (gmt / 2) % DiabloSpoolDirs, gmt);

(gmt / 2) will always be divisible by 5.  If you happen to have 5
DiabloSpoolDirs, you will _only_ use N.00.  The correct fix is to
divide by 10.  (You need to do this adjustment all over the place, you
can find them with fgrep "N.%02".)


Kjetil T.

Technical Details
Message-ID: <1r8zxhb7ez.fsf@haey.ifi.uio.no>
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
References: <957925631.861148@news.netscum.dk> <3918dfe1$0$88605@news.execpc.com>

Show Full Headers
Complete Article Headers
Message-ID: <1r8zxhb7ez.fsf@haey.ifi.uio.no>
Subject: Re: Diablo spool
Date: Thu, 11 May 2000 00:00:00 +0000
From: Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no>
References: <957925631.861148@news.netscum.dk> <3918dfe1$0$88605@news.execpc.com>
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: 622089550
X-Complaints-To: abuse@ifi.uio.no
X-Trace: maud.ifi.uio.no 958047924 24786 129.240.64.139 (11 May 2000 12:25:24 GMT)
Organization: Dept. of Informatics, University of Oslo, Norway
NNTP-Posting-Date: 11 May 2000 12:25:24 GMT
Newsgroups: news.software.nntp