FreeBSD 4.0/AXP

Assar Westerlund assar at stacken.kth.se
Wed Apr 19 17:28:52 CEST 2000


Todd Cohen <cohentl at clarkson.edu> writes:
> 	I installed arla 0.31 out of the ports collection in FreeBSD
> 4.0/AXP and when I run startarla I get the following:
> 
> lizard# startarla
> No /dev/xfs0
> lizard# 
> 
> How do I go about creating that device? Sorry for such a dumb question..

It's not a dumb question at all.  The short answer (that you already
got from Robert) is to create it manually.

The long(er) story is that it used to get created automatically after
having loaded the kernel module and thus figured out the major device
number.  But for some reason, `kldload' never got the `-p' option
(but see kern/9478).  Anyways, since we got assigned a major number
and we use it statically, I added a `mknod' to the startarla.in
script,  patch appended at the end.  Thanks for getting this
fixed. :-)

/assar


Index: startarla.in
===================================================================
RCS file: /afs/stacken.kth.se/src/SourceRepository/arla/xfs/bsd/bin/startarla.in,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -w -u -w -r1.11 -r1.12
--- startarla.in	2000/02/25 03:52:00	1.11
+++ startarla.in	2000/04/19 14:49:10	1.12
@@ -5,7 +5,7 @@
 # You must have a path that includes, modload, ld, 
 # mount_xfs, and arlad.
 #
-# $Id: startarla.in,v 1.11 2000/02/25 03:52:00 assar Exp $
+# $Id: startarla.in,v 1.12 2000/04/19 14:49:10 assar Exp $
 #
 
 
@@ -21,10 +21,8 @@
 
 if test -f  $BINDIR/xfs.ko; then
   if test ! -c /dev/xfs0; then
-    echo "No /dev/xfs0"; exit 1  # doesn't support -p
+    mknod /dev/xfs0 c 128 0
   fi
-# -p only works on assaris
-#  kldload -p $BINDIR/xfs_kld_makedev $BINDIR/xfs.ko
   kldload $BINDIR/xfs.ko
 else
   modload -e xfs_mod -p $BINDIR/xfs_makedev $BINDIR/xfs_mod.o





More information about the Arla-drinkers mailing list