arla-0.22 + netbsd-current (19990301, i386, 1.3J) == crash

assar@stacken.kth.se assar at stacken.kth.se
Thu Mar 4 06:06:07 CET 1999


Johan Ihren <johani at pdc.kth.se> writes:
> db> trace
> _vfs_opv_init(...)
> _vfs_attach(...)
> _end(...)
> _end(...)
> _end(...)
> _end(...)
> _lkmioctl(...)
> _spec_ioctl(...)
> _vn_ioctl(...)
> _sys_ioctl(...)
> _syscall(...)
> ----- syscall (#54) ----

Now I don't have a netbsd-box to test this on, but from looking at the
code it seems like that the following patch might help.  You need to
run `autoreconf -f' and then re-run configur after having applied this
patch.  If you get any warnings while compiling the xfs module at all
please send them to me as they could indicate that something is wrong.

/assar


Index: acconfig.h
===================================================================
RCS file: /usr/local/cvsroot/arla/acconfig.h,v
retrieving revision 1.74
diff -u -w -r1.74 acconfig.h
--- acconfig.h	1999/02/26 00:52:24	1.74
+++ acconfig.h	1999/03/04 04:59:27
@@ -288,6 +288,9 @@
 /* Define if your struct vfsops has a field vfs_oid */
 #undef HAVE_STRUCT_VFSOPS_VFS_OID
 
+/* Define if your struct vfsops has a field vfs_checkexp */
+#undef HAVE_STRUCT_VFSOPS_VFS_CHECKEXP
+
 /* Define if your struct vfsops has a field vfs_uninit */
 #undef HAVE_STRUCT_VFSOPS_VFS_UNINIT
 
Index: configure.in
===================================================================
RCS file: /usr/local/cvsroot/arla/configure.in,v
retrieving revision 1.254
diff -u -w -r1.254 configure.in
--- configure.in	1999/03/04 01:36:05	1.254
+++ configure.in	1999/03/04 04:59:31
@@ -1038,6 +1038,15 @@
 AC_HAVE_KERNEL_STRUCT_FIELD([
 #include <sys/types.h>
 #include <sys/param.h>
+#include <sys/mount.h>
+],
+vfsops,
+void *,
+vfs_checkexp)
+
+AC_HAVE_KERNEL_STRUCT_FIELD([
+#include <sys/types.h>
+#include <sys/param.h>
 #include <sys/vnode.h>
 #include <sys/vnode_if.h>
 ],
Index: xfs/bsd/xfs_vfsops-netbsd.c
===================================================================
RCS file: /usr/local/cvsroot/arla/xfs/bsd/xfs_vfsops-netbsd.c,v
retrieving revision 1.10
diff -u -w -r1.10 xfs_vfsops-netbsd.c
--- xfs_vfsops-netbsd.c	1998/12/28 16:05:21	1.10
+++ xfs_vfsops-netbsd.c	1999/03/04 04:59:53
@@ -125,8 +125,11 @@
     xfs_fhtovp,
     xfs_vptofh,
     xfs_init,
-    NULL,
-    NULL,
+    NULL,			/* sysctl */
+    NULL,			/* mountroot */
+#ifdef HAVE_STRUCT_VFSOPS_VFS_CHECKEXP
+    NULL,			/* checkexp */
+#endif
 #ifdef HAVE_STRUCT_VFSOPS_VFS_OPV_DESCS
     xfs_vnodeopv_descs
 #endif





More information about the Arla-drinkers mailing list