Coda File System

Re: Coda release 5.3.2 available

From: Phil Nelson <phil_at_cs.wwu.edu>
Date: Wed, 13 Oct 1999 17:01:20 -0700 (PDT)
Scott Smith wrote:
>Has anyone actually gotten the client or server to run on
>NetBSD-1.4.1/sparc?

Ok, I now have a client running under NetBSD-1.4.1/sparc (with minor
changes.)  I haven't tried the server, but I suspect it will work
just fine.  (I'll try to check that out later.)

The example:

---->~
bagley[31]$ uname -a
NetBSD bagley 1.4.1 NetBSD 1.4.1 (GENERIC_SCSI3) #0: Wed Oct 13 16:03:24 PDT 1999     phil_at_bagley:/nookwd0e/phil/netbsd/src/sys/arch/sparc/compile/GENERIC_SCSI3 sparc

---->~
bagley[32]$ ls -l /coda
total 6
drwxrwxrwx  3 root    65534  2048 Aug  5 16:55 company
drwxr-xr-x  2 daemon  65534  2048 Sep 27 10:29 public
drwxr-xr-x  2 daemon  65534  2048 Aug  4 10:19 usr

---->~
bagley[33]$ cfs la /coda
System:Administrators  rlidwka 
      System:AnyUser  rl      


Here are kernel diffs you will need to get it working.
These are relative to src/sys/arch/sparc in the NetBSD 1.4.1 source
tree.  Add these diffs and recompile your kernel.  If you are not
using a GENERIC kernel, you will need add the changes that are
done to the GENERIC conf file to your conf file.

You will also need to create /dev/cfs0.  You can make it with:

   mknod /dev/cfs0 c 47 0

Note, you should put the servers names and IPs in /etc/hosts.  For
some reason, venus doesn't like them not in there.  It also helps
for venus startup when disconnected, it is best to have them in
your /etc/hosts file.

Let me know if you 

*** conf/GENERIC.orig	Wed Oct 13 08:52:40 1999
--- conf/GENERIC	Wed Oct 13 10:54:47 1999
***************
*** 138,143 ****
--- 138,144 ----
  file-system	CD9660		# ISO 9660 + Rock Ridge file system
  file-system	UNION		# union file system
  file-system	MSDOSFS		# MS-DOS FAT filesystem(s).
+ file-system	CODA		# Coda File System; also needs vcoda (below)
  
  ## File system options.
  options 	NFSSERVER	# Sun NFS-compatible filesystem server
***************
*** 533,535 ****
--- 534,539 ----
  ## THIS DEVICE IS EXPERIMENTAL; use at your own risk.
  
  #pseudo-device	rnd
+ 
+ # a pseudo device needed for Coda	# also needs CODA (above)
+ pseudo-device	vcoda		4	# coda minicache <-> venus comm.
*** sparc/conf.c.orig	Wed Oct 13 08:48:42 1999
--- sparc/conf.c	Wed Oct 13 15:35:47 1999
***************
*** 95,100 ****
--- 95,103 ----
  #include "rnd.h"
  #include "scsibus.h"
  
+ #include "vcoda.h"
+ cdev_decl(vc_nb_);
+ 
  struct bdevsw	bdevsw[] =
  {
  	bdev_notdef(),			/* 0 */
***************
*** 175,181 ****
  	cdev_notdef(),			/* 44 */
  	cdev_notdef(),			/* 45 */
  	cdev_notdef(),			/* 46 */
! 	cdev_notdef(),			/* 47 */
  	cdev_notdef(),			/* 48 */
  	cdev_notdef(),			/* 49 */
  	cdev_notdef(),			/* 50 */
--- 178,184 ----
  	cdev_notdef(),			/* 44 */
  	cdev_notdef(),			/* 45 */
  	cdev_notdef(),			/* 46 */
! 	cdev_vc_nb_init(NVCODA,vc_nb_),	/* 47: coda file system psuedo-device */
  	cdev_notdef(),			/* 48 */
  	cdev_notdef(),			/* 49 */
  	cdev_notdef(),			/* 50 */



-- 
Phil Nelson                    NetBSD: http://www.netbsd.org
e-mail: phil@cs.wwu.edu        Coda: http://www.coda.cs.cmu.edu
http://www.cs.wwu.edu/~phil    
Received on 1999-10-13 20:05:30