Subject: CVS commit: src/sys
To: None <source-changes@NetBSD.org>
From: Juergen Hannken-Illjes <hannken@netbsd.org>
List: source-changes
Date: 06/23/2007 14:56:10
Module Name: src
Committed By: hannken
Date: Sat Jun 23 14:56:10 UTC 2007
Modified Files:
src/sys/sys: param.h
src/sys/ufs/ufs: quota.h ufs_quota.c
Log Message:
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ß.
Welcome to 4.99.21 (struct dquot and therefore struct inode changed layout)
To generate a diff of this commit:
cvs rdiff -r1.262 -r1.263 src/sys/sys/param.h
cvs rdiff -r1.23 -r1.24 src/sys/ufs/ufs/quota.h
cvs rdiff -r1.45 -r1.46 src/sys/ufs/ufs/ufs_quota.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.