Bill's NCPFS patch.

Troels Arvin (rhl@studmed.ku.dk)
Wed, 05 Nov 1997 04:04:14 +0000


Hello,

I tried Bill's latest NCPFS patch for 2.1.61 (on a 2.1.62).

Before the patch, all I could do was to create an IPX interface, showing
normal values in /proc/sys/net/ipx*

An impovement after Bill's patch is that I can now get a result of
'slist' (which lists the 'available' servers).

But apart from that, nothing works here :-(

A 'ncpmount -S server -U user -P password /mnt/ncp' fails. Corresponding
kernel log entries:
kernel: ncpfs: init_module called
kernel: ncp_read_super: kernel requires mount version 3
(I didn't know that there is a version 3 of mount??)

After a while (when the kernel daemon unloads ncpfs), the kernel log
says "ncpfs: cleanup_module called" and "ncp_free_dir_cache: enter"; I
suppose that this is OK.

A 'nwuserlist -S server -U user -P password' doesn't produce any kernel
messages (provided that the modules are already loaded). However,
nwuserlist responds:
ncp_reply_size 0 <8
ncp_reply_size 0 <54

The same happens using the nwfstime utility.

I'm testing on a RedHat 4.9.1 (beta) which uses glibc. RedHat has
patched the ncp utilities (ncpfs-2.0.11) in order to make them compile
with glibc2. I tried recompiling the ncputilities using RedHat's patched
sources and building produced a rather large number of warning messages;
most were related to /usr/include/linux and /usr/include/asm (should be
reproductable on any system). - But there was also the following
warnings and an error when building the utilities, some examples:

-------------------------------------------------------------------------------
make[1]: Entering directory `/usr/src/redhat/BUILD/ncpfs-2.0.11/ipx-1.0'
cc -O4 -mpentium -Wall ipx_configure.c -o ipx_configure
In file included from /usr/include/sys/select.h:31,
from /usr/include/sys/types.h:126,
from ipx_configure.c:12:
/usr/include/selectbits.h:31: warning: `__FD_ZERO' redefined
/usr/include/asm/posix_types.h:62: warning: this is the location of the
previous definition
[...]

In file included from /usr/include/sys/socket.h:34,
from ipx_configure.c:13:
/usr/include/socketbits.h:40: warning: `SOCK_STREAM' redefined
/usr/include/linux/socket.h:118: warning: this is the location of the
previous definition
[...]

In file included from /usr/include/socketbits.h:96,
from /usr/include/sys/socket.h:34,
from ipx_configure.c:13:
/usr/include/sockaddrcom.h:25: warning: redefinition of `sa_family_t'
/usr/include/linux/socket.h:9: warning: `sa_family_t' previously
declared here
-------------------------------------------------------------------------------

So my troubles could be due to linux / glibc2 / ncpfs-2.0.11
incompatibilities.

And I used egcs 2.90.14 (971023 snapshot) with compile options "-O4
-mpentium" for both kernel and ncpfs-utilities. And - obviously - I
compiled ncpfs kernel support as a module; the same with ipx.

How can I contribute to the development of the kernel ncp filesystem
support at this point? - What kinds of tests should I do?

-- 
Greetings from Troels Arvin, Copenhagen, Denmark
http://www.mdb.ku.dk/tarvin/