🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #23954

Linux "inum" hack problem

#23954
From: Brian
Date: Wed, 03 Dec 1997 00:00
88 lines
3088 bytes
I applied the Linux "inum" hack at
http://thereisnocabal.erols.com/patches/

I applied both patches: the one  to the ext2 filesystem source in the
kernel source tree, and also the patch to the INN source tree itself.
Both were simple to do.

My understanding was that instead of passing filenames, you pass the
inode.......so instead of using a W flag of "f" you would use "i", and I
figured instead of using a W flag of "n" you could use "i" as well.

I added the "inum" option to my /etc/fstab as well for the news spool
partition, and it mounted fine.

Here is what I changed in /var/news/etc/newsfeeds:

# NoCem 
NOCEM!:!*,news.lists.filters,news.admin.net-abuse.announce,\
        alt.nocem.misc,news.admin.net-abuse.bulletins,japan.test\
        :Tc,Wf:/usr/lib/news/ncmsp/chan2prog /usr/lib/news/ncmsp/ncmspool\
        |logger -p news.notice -t ncmspool

BECAME 

# NoCem with inum hack 
NOCEM!:!*,news.lists.filters,news.admin.net-abuse.announce,\ 
	alt.nocem.misc,news.admin.net-abuse.bulletins,japan.test\ 
	:Tc,Wi:/usr/lib/news/ncmsp/chan2prog /usr/lib/news/ncmsp/ncmspool\ 
	|logger -p news.notice -t ncmspool

and also

# innfeed  
innfeed!:!*\ 
	 :Tc,Wnm*\ 
	:/usr/news/local/startinnfeed

BECAME

# innfeed with inum hack
innfeed!:!*\
        :Tc,Wim*\
        :/usr/news/local/startinnfeed


THE PROBLEM:

I get the following in the logs /var/log/news/news.err:

Dec 3 15:29:16 news innd: innfeed! internal SITEwritefromflags i 
Dec 3 15:29:37 news innd: NOCEM! internal SITEwritefromflags i 
Dec 3 15:29:37 news innd: innfeed! internal SITEwritefromflags i 
Dec 3 15:29:51 news innd: innfeed! internal SITEwritefromflags i 
Dec 3 15:32:01 news innd: NOCEM! internal SITEwritefromflags i

What is this saying? Does this mean its not working, and if this is
"normal and ok" is there a way to turn off this message?


The only thing I can thing that was a kludge so to speak, in the patching
was where in art.c the inum hack wants to do:

 if (fstat(fd, &sb)) { 
     IOError(WHEN);  
     return -1;  
 } 

 Data->Inode = sb.st_ino; 


I changed "IOError(WHEN);" to "IOError(WHEN,errno);" so that it would
compile.  Since back in INN-1.4 IOError took a single argument (WHEN), and
in newer versions it wants "IOError(WHEN,int);"

I don't think thats whats causing my problem, but then again I shouldl
probably have something other than "errno" there for the int to pass to
IOError().  If anyone could shed light on whats going on that would be
great :) .


Brian





Technical Details
Message-ID: <Pine.LNX.3.96.971203153408.6896A-100000@mercury.shreve.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

Show Full Headers
Complete Article Headers
Message-ID: <Pine.LNX.3.96.971203153408.6896A-100000@mercury.shreve.net>
Subject: Linux "inum" hack problem
Date: Wed, 03 Dec 1997 00:00:00 +0000
From: Brian <signal@shreve.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: 294968634
To: news@erols.com
Organization: ShreveNet
Newsgroups: news.software.nntp