Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/sys/coda pull up rev 1.13 from trunk (requested by mycr...



details:   https://anonhg.NetBSD.org/src/rev/357b9a065fa0
branches:  netbsd-1-4
changeset: 469555:357b9a065fa0
user:      cgd <cgd%NetBSD.org@localhost>
date:      Sun Oct 10 20:50:52 1999 +0000

description:
pull up rev 1.13 from trunk (requested by mycroft):
  Fix potential overflow of v_usecount and v_writecount (and panics
  resulting from this) by widening them to `long'.  Mostly affects
  systems where maxvnodes>=32768.

diffstat:

 sys/coda/coda_vnops.c |  12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diffs (43 lines):

diff -r acb47eb06264 -r 357b9a065fa0 sys/coda/coda_vnops.c
--- a/sys/coda/coda_vnops.c     Sun Oct 10 20:49:49 1999 +0000
+++ b/sys/coda/coda_vnops.c     Sun Oct 10 20:50:52 1999 +0000
@@ -6,7 +6,7 @@
 rmdir
 symlink
 */
-/*     $NetBSD: coda_vnops.c,v 1.9 1998/12/10 02:22:52 rvb Exp $       */
+/*     $NetBSD: coda_vnops.c,v 1.9.4.1 1999/10/10 20:50:52 cgd Exp $   */
 
 /*
  * 
@@ -56,6 +56,12 @@
 /*
  * HISTORY
  * $Log: coda_vnops.c,v $
+ * Revision 1.9.4.1  1999/10/10 20:50:52  cgd
+ * pull up rev 1.13 from trunk (requested by mycroft):
+ *   Fix potential overflow of v_usecount and v_writecount (and panics
+ *   resulting from this) by widening them to `long'.  Mostly affects
+ *   systems where maxvnodes>=32768.
+ *
  * Revision 1.9  1998/12/10 02:22:52  rvb
  * Commit a couple of old fixes
  *
@@ -655,7 +661,7 @@
     }
 
     /* Have UFS handle the call. */
-    CODADEBUG(CODA_RDWR, myprintf(("indirect rdwr: fid = (%lx.%lx.%lx), refcnt = %d\n",
+    CODADEBUG(CODA_RDWR, myprintf(("indirect rdwr: fid = (%lx.%lx.%lx), refcnt = %ld\n",
                              cp->c_fid.Volume, cp->c_fid.Vnode, 
                              cp->c_fid.Unique, CTOV(cp)->v_usecount)); )
 
@@ -1924,7 +1930,7 @@
        }
        
        /* Have UFS handle the call. */
-       CODADEBUG(CODA_READDIR, myprintf(("indirect readdir: fid = (%lx.%lx.%lx), refcnt = %d\n",cp->c_fid.Volume, cp->c_fid.Vnode, cp->c_fid.Unique, vp->v_usecount)); )
+       CODADEBUG(CODA_READDIR, myprintf(("indirect readdir: fid = (%lx.%lx.%lx), refcnt = %ld\n",cp->c_fid.Volume, cp->c_fid.Vnode, cp->c_fid.Unique, vp->v_usecount)); )
        error = VOP_READDIR(cp->c_ovp, uiop, cred, eofflag, cookies,
                               ncookies);
        if (error)



Home | Main Index | Thread Index | Old Index