Source-Changes-HG archive

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

[src/netbsd-2]: src/sys/sys Pull up following revision(s) (requested by hannk...



details:   https://anonhg.NetBSD.org/src/rev/949093d7f088
branches:  netbsd-2
changeset: 564617:949093d7f088
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Sun Aug 12 17:13:59 2007 +0000

description:
Pull up following revision(s) (requested by hannken in ticket #11334):
        sys/ufs/ufs/ufs_quota.c: revision 1.46
        sys/ufs/ufs/quota.h: revision 1.24
        sys/sys/param.h: patch
If a quota-enabled file system has 65536 active vnodes for one uid
the reference counter of the corresponding struct dquot will overflow.
Change the type of the reference counter from u_int16_t to u_int32_t and
add an assertion to check for overflow.
Observed and tested by Edgar Fu?.
Bump kernel version as LKM's depending on UFS internals will have to be
recompiled after this change (discussed and approved on tech-kern).

diffstat:

 sys/sys/param.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 2cf41f710056 -r 949093d7f088 sys/sys/param.h
--- a/sys/sys/param.h   Sat Aug 11 15:10:14 2007 +0000
+++ b/sys/sys/param.h   Sun Aug 12 17:13:59 2007 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: param.h,v 1.188.2.9.2.12 2005/10/26 23:18:53 riz Exp $ */
+/*     $NetBSD: param.h,v 1.188.2.9.2.13 2007/08/12 17:13:59 bouyer Exp $      */
 
 /*-
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -63,7 +63,7 @@
  *     2.99.9          (299000900)
  */
 
-#define        __NetBSD_Version__      201000000       /* NetBSD 2.1_STABLE */
+#define        __NetBSD_Version__      201000001       /* NetBSD 2.1_STABLE */
 
 #define __NetBSD_Prereq__(M,m,p) (((((M) * 100000000) + \
     (m) * 1000000) + (p) * 100) >= __NetBSD_Version__)



Home | Main Index | Thread Index | Old Index