summaryrefslogtreecommitdiffstats
path: root/sys/coda/coda_vfsops.c
diff options
context:
space:
mode:
authorrvb <rvb@FreeBSD.org>1998-11-16 19:48:26 +0000
committerrvb <rvb@FreeBSD.org>1998-11-16 19:48:26 +0000
commitb1e41ac988d76d4eac6000d8e640b5f0b811ea79 (patch)
treea16569edf0d3ff337b312681f803c8aae572bcec /sys/coda/coda_vfsops.c
parent27d260c1d9912940330e3b5b42f10508cd9db0d6 (diff)
downloadFreeBSD-src-b1e41ac988d76d4eac6000d8e640b5f0b811ea79.zip
FreeBSD-src-b1e41ac988d76d4eac6000d8e640b5f0b811ea79.tar.gz
A few bug fixes for Robert Watson
Diffstat (limited to 'sys/coda/coda_vfsops.c')
-rw-r--r--sys/coda/coda_vfsops.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/sys/coda/coda_vfsops.c b/sys/coda/coda_vfsops.c
index 42006c0..e282911 100644
--- a/sys/coda/coda_vfsops.c
+++ b/sys/coda/coda_vfsops.c
@@ -27,7 +27,7 @@
* Mellon the rights to redistribute these changes without encumbrance.
*
* @(#) src/sys/cfs/coda_vfsops.c,v 1.1.1.1 1998/08/29 21:14:52 rvb Exp $
- * $Id: coda_vfsops.c,v 1.7 1998/09/29 20:19:45 rvb Exp $
+ * $Id: coda_vfsops.c,v 1.8 1998/11/03 08:55:06 peter Exp $
*
*/
@@ -47,6 +47,15 @@
/*
* HISTORY
* $Log: coda_vfsops.c,v $
+ * Revision 1.8 1998/11/03 08:55:06 peter
+ * Support KLD. We register and unregister two modules. "coda" (the vfs)
+ * via VFS_SET(), and "codadev" for the cdevsw entry. From kldstat -v:
+ * 3 1 0xf02c5000 115d8 coda.ko
+ * Contains modules:
+ * Id Name
+ * 2 codadev
+ * 3 coda
+ *
* Revision 1.7 1998/09/29 20:19:45 rvb
* Fixes for lkm:
* 1. use VFS_LKM vs ACTUALLY_LKM_NOT_KERNEL
@@ -427,6 +436,7 @@ coda_unmount(vfsp, mntflags, p)
vrele(mi->mi_rootvp);
active = coda_kill(vfsp, NOT_DOWNCALL);
+ mi->mi_rootvp->v_flag &= ~VROOT;
error = vflush(mi->mi_vfsp, NULLVP, FORCECLOSE);
printf("coda_unmount: active = %d, vflush active %d\n", active, error);
error = 0;
@@ -506,7 +516,7 @@ coda_root(vfsp, vpp)
MARK_INT_SAT(CODA_ROOT_STATS);
goto exit;
- } else if (error == ENODEV) {
+ } else if (error == ENODEV || error == EINTR) {
/* Gross hack here! */
/*
* If Venus fails to respond to the CODA_ROOT call, coda_call returns
OpenPOWER on IntegriCloud