Thread View: news.software.nntp
1 messages
1 total messages
Started by Brian
Wed, 03 Dec 1997 00:00
Linux "inum" hack problem
Author: Brian
Date: Wed, 03 Dec 1997 00:00
Date: Wed, 03 Dec 1997 00:00
88 lines
3088 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads