xfs.ko errors in FreeBSD 4.0-CURRENT

Assar Westerlund assar at stacken.kth.se
Fri Aug 13 17:12:35 CEST 1999


Kenneth Wayne Culver <culverk at wam.umd.edu> writes:
> (I moved xfs.ko to /modules)
> culverk:~# mount -t xfs /dev/xfs0 /afs
> WARNING: "(null)" is usurping "console"'s cdevsw[]
> WARNING: "(null)" is usurping "wd"'s bmaj
> xfs cdev loaded at 0
> xfs: mount: Device not configured
> culverk:~#
> Can anyone tell me what happened, or how to fix it?

Yes, the interface for device driver changed in -current.

The appended patches makes it build and work for me on -current.

/assar


Index: xfs/bsd/xfs_dev-bsd.c
===================================================================
RCS file: /afs/stacken.kth.se/src/SourceRepository/arla/xfs/bsd/xfs_dev-bsd.c,v
retrieving revision 1.9
diff -u -w -r1.9 xfs_dev-bsd.c
--- xfs_dev-bsd.c	1999/06/03 00:11:02	1.9
+++ xfs_dev-bsd.c	1999/08/12 03:13:20
@@ -177,8 +177,14 @@
 #endif
     nommap,
     nostrategy,
-    NULL,
-    0
+    "xfs",
+    noparms,			/* d_bogoparms */
+    128,			/* XXX */
+    nodump,
+    nopsize,
+    0,				/* flags */
+    0,				/* maxio */
+    NODEV,			/* bmaj */
 };
 
 #endif /* FreeBSD */
Index: xfs/bsd/xfs_wrap-bsd.c
===================================================================
RCS file: /afs/stacken.kth.se/src/SourceRepository/arla/xfs/bsd/xfs_wrap-bsd.c,v
retrieving revision 1.22
diff -u -w -r1.22 xfs_wrap-bsd.c
--- xfs_wrap-bsd.c	1999/06/08 08:21:10	1.22
+++ xfs_wrap-bsd.c	1999/08/12 02:59:34
@@ -154,9 +154,9 @@
 
 #ifdef DEV_MODULE
 
-#define XFS_DEV_NO NOMAJ
+#define XFS_DEV_NO 128
 
-DEV_MODULE(xfsdev, XFS_DEV_NO, NOMAJ, xfs_dev, xfs_load, NULL);
+DEV_MODULE(xfsdev, XFS_DEV_NO, NODEV, xfs_dev, xfs_load, NULL);
 
 #else /* DEV_MODULE */
 





More information about the Arla-drinkers mailing list