FreeBSD 4.0

assar@stacken.kth.se assar at stacken.kth.se
Wed Jun 2 21:55:02 CEST 1999


Kenneth Wayne Culver <culverk at wam.umd.edu> writes:
> I just got this error with FreeBSD 4.0 (current as of last night), and

[ keeping code that always works with -current is kind of a moving
target :-) ]

> arla-0.25:
> 
> gcc -c  -DHAVE_CONFIG_H -I. -I.  -I../../include -I./../../include
> -I./../include  -I/usr/athena/include -DXFS_DEBUG -g  -Wall -I. -I. -I.
> -DKERNEL -D_KERNEL -DVFS_KLD -DKLD_MODULE -I/sys/arch -I/sys -I.
> -Wno-unused xfs_vfsops-common.c
> xfs_vfsops-common.c: In function `xfs_mount_common':
> xfs_vfsops-common.c:138: `nchrdev' undeclared (first use in this function)
> xfs_vfsops-common.c:138: (Each undeclared identifier is reported only once
> xfs_vfsops-common.c:138: for each function it appears in.)
> xfs_vfsops-common.c:152: `cdevsw' undeclared (first use in this function)

The following quick and untested work-around should solve it for you.
A proper fix is on the way but will take a little more time.

/assar

Index: xfs/bsd/xfs_vfsops-common.c
===================================================================
RCS file: /afs/stacken.kth.se/src/SourceRepository/arla/xfs/bsd/xfs_vfsops-common.c,v
retrieving revision 1.19
diff -u -w -u -w -r1.19 xfs_vfsops-common.c
--- xfs_vfsops-common.c	1999/05/19 09:10:02	1.19
+++ xfs_vfsops-common.c	1999/06/02 19:53:37
@@ -134,6 +134,7 @@
 
     XFSDEB(XDEBVFOPS, ("dev = %d.%d\n", major(dev), minor(dev)));
 
+#if 0
     /* Check that this device really is an xfs_dev */
     if (major(dev) < 0 || major(dev) > nchrdev) {
 	XFSDEB(XDEBVFOPS, ("major out of range (0 < %d < %d)\n", 
@@ -152,6 +153,7 @@
     if (cdevsw[major(dev)] == NULL
 	|| !xfs_func_is_devopen(cdevsw[major(dev)]->d_open))
 	return ENXIO;
+#endif
 #endif
 
     if (xfs[minor(dev)].status & XFS_MOUNTED)





More information about the Arla-drinkers mailing list