🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #39341

Re: Diablo - Multiple Spool Directories ?

#39341
From: Kjetil Torgrim Homme
Date: Sun, 22 Aug 1999 00:00
26 lines
1603 bytes
[Paul Raj Khangure]

>   Is it possible to set up the diablo feeder to use two different
>   drives for spooling, without having to use raidtools to link them
>   together into one drive? ie, can I specify two spool directories?

No.  But it is not too hard to add, I think.  Example:

./util/doutq.c:
snprintf(path, sizeof(path), "%s/%s.S%05d", PatExpand(DQueueHomePat), name, i);

Change this into
snprintf(path, sizeof(path), "%s/%02d/%s.S%05d",
	 PatExpand(DQueueHomePat), name, i % 2, i);

You have to do the same in dnewslink.c and diablo.c, and hunt out the
mkdir() and chdir() calls which need changing.  If you make the number
of disks (2) configurable, Matt might even accept your patch :-)

(You may get feeds which are in lockstep if you don't take care when
putting this into production.)


Kjetil T.

Technical Details
Message-ID: <1rn1vjq35n.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: <7poh0s$54c$1@news.iinet.net.au>

Show Full Headers
Complete Article Headers
Message-ID: <1rn1vjq35n.fsf@haey.ifi.uio.no>
Subject: Re: Diablo - Multiple Spool Directories ?
Date: Sun, 22 Aug 1999 00:00:00 +0000
From: Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no>
References: <7poh0s$54c$1@news.iinet.net.au>
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: 515810751
X-Complaints-To: usenet@mimir.ifi.uio.no
X-Trace: mimir.ifi.uio.no 935333509 26419 129.240.64.139 (22 Aug 1999 14:51:49 GMT)
Organization: Dept. of Informatics, University of Oslo, Norway
NNTP-Posting-Date: 22 Aug 1999 14:51:49 GMT
Newsgroups: news.software.nntp