Installation hints (not instructions yet..)

If you have a kernel older than 1.1.91 or so, you have to patch it and
recompile a new one, because we need the symbol close_fp in the kernel
symbol table. Linus put it there around 1.1.91 (it might also be
1.1.90 or 1.1.92, I don't know.), so newer kernels do not have to be
patched. So, if you might skip to the installation of user programs.


Kernel preparation:

   If you want to patch your kernel, it's best done manually. You have
   to apply the following patch to the file linux/kernel/ksyms.c:
   
--- ksyms.c	Wed Jan 25 22:10:49 1995
***************
*** 68,77 ****
--- 68,82 ----
  extern void free_dma(unsigned int dmanr);
  
  extern void (* iABI_hook)(struct pt_regs * regs);
  
+ int close_fp(struct file *filp, unsigned int fd); /* For userfs */

  struct symbol_table symbol_table = { 0, 0, 0, /* for stacked module support*/
  	{

+ 	X(close_fp),

  	/* stackable module support */
  	X(rename_module_symbol),
  
  	/* system info variables */
*** Patch ends here

You only have to add the lines marked with "+" at the appropriate places.

Now recompile the kernel and reboot with the new kernel. 



Installation of user programs:

Simply type make at the top dir of smbfs. On my computer, it compiles
"out of the box", if you have difficulties, tell me.

What do we have now?

  - kernel/src/userfs.o

    This is the kernel module you must load with the modutils. You get
    them where you got your latest kernel. The file is typically named
    modules-1.1.87.tar.gz. The modutils have to be installed
    separately.

  - muserfs/muserfs

    This is the mount command. It must be suid root, because the mount
    system call requires root privileges. You must login as root and
    then:

        chown root.root 
        muserfs chmod u+s muserfs

  - smbfs/smbfs

    This is the client of userfs that connects to your wfw-computer. 
    Do the mount with:
 
     muserfs/muserfs [-a] smbfs/smbfs mount-point host service \
                     [-P passwd] [-U username] [-p portnumber] \
                     [-N netbiosname]

    (with paths etc.. set right) The portnumber and the netbiosname
    use reasonable defaults for the most cases, so the only options
    you have to give is the password for the account on your server.
    The username has to be given if you username on the server differs
    from you unix user-id.

    muserfs doesn't return to the command line, because you would not
    be able to unmount the drive as a normal user. So it gives you a
    chance to unmount by typing control-c. When you are root and want
    to make a permanent mount, you can give the -a switch.
