device not configured?

Assar Westerlund assar at sics.se
Wed May 27 05:14:03 CEST 1998


Naomaru Itoi <itoi at eecs.umich.edu> writes:
> May 26 22:59:37 charlie /bsd: xfs_mount: struct mount mp = 0xf07f3e00 path = /afs data = '/dev/xfs0'

Ok.  Try applying the appended patch and then send us the new output.

/assar

Index: xfs/bsd/xfs_vfsops.c
===================================================================
RCS file: /usr/local/cvsroot/arla/xfs/bsd/xfs_vfsops.c,v
retrieving revision 1.15
diff -u -w -u -w -r1.15 xfs_vfsops.c
--- xfs_vfsops.c	1998/04/19 06:09:12	1.15
+++ xfs_vfsops.c	1998/05/27 03:13:25
@@ -90,6 +90,7 @@
     devvp = ndp->ni_vp;
 
     if (devvp->v_type != VCHR) {
+	XFSDEB(XDEBVFOPS, ("xfs_mount: %s not a cdev\n", data));
 	vput(devvp);
 	return ENXIO;
     }
@@ -102,17 +103,27 @@
     vput(devvp);
 
     /* Check that this device really is an xfs_dev */
-    if (major(dev) < 0 || nchrdev < major(dev))
+    if (major(dev) < 0 || nchrdev < major(dev)) {
+	XFSDEB(XDEBVFOPS, ("xfs_mount: bad major: %u [0,%u)\n",
+			   major(dev), nchrdev));
 	return ENXIO;
-    if (minor(dev) < 0 || NXFS < minor(dev))
+    }
+    if (minor(dev) < 0 || NXFS < minor(dev)) {
+	XFSDEB(XDEBVFOPS, ("xfs_mount: bad minor: %u [0,%u)\n",
+			   minor(dev), NXFS));
 	return ENXIO;
+    }
 #if defined(__NetBSD__) || defined(__OpenBSD__)
-    if (cdevsw[major(dev)].d_open != xfs_devopen)
+    if (cdevsw[major(dev)].d_open != xfs_devopen) {
+	XFSDEB(XDEBVFOPS, ("xfs_mount: not xfs dev_open\n"));
 	return ENXIO;
+    }
 #elif defined(__FreeBSD__)
     if (cdevsw[major(dev)] == NULL
-	|| cdevsw[major(dev)]->d_open != xfs_devopen)
+	|| cdevsw[major(dev)]->d_open != xfs_devopen) {
+	XFSDEB(XDEBVFOPS, ("xfs_mount: not xfs dev_open\n"));
 	return ENXIO;
+    }
 #endif
 
     if (xfs[minor(dev)].status & XFS_MOUNTED)





More information about the Arla-drinkers mailing list