Subject: Re: kern/33543: panic on quota
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>
List: netbsd-bugs
Date: 06/24/2007 20:15:06
The following reply was made to PR kern/33543; it has been noted by GNATS.
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>
To: gnats-bugs@netbsd.org
Cc: dennis@eperm.net
Subject: Re: kern/33543: panic on quota
Date: Sun, 24 Jun 2007 22:14:16 +0200
Dennis,
your crash regarding quotas is supposed to be fixed by the appended diff.
Could you please try it out.
--
Juergen Hannken-Illjes - hannken@eis.cs.tu-bs.de - TU Braunschweig (Germany)
Index: sys/ufs/ufs/quota.h
===================================================================
RCS file: /cvsroot/src/sys/ufs/ufs/quota.h,v
retrieving revision 1.17
retrieving revision 1.24
diff -p -u -2 -r1.17 -r1.24
--- quota.h 7 Aug 2003 16:34:44 -0000 1.17
+++ quota.h 23 Jun 2007 14:56:09 -0000 1.24
@@ -119,6 +119,7 @@ struct dquot {
TAILQ_ENTRY(dquot) dq_freelist; /* free list */
u_int16_t dq_flags; /* flags, see below */
- u_int16_t dq_cnt; /* count of active references */
- u_int16_t dq_spare; /* unused spare padding */
u_int16_t dq_type; /* quota type of this dquot */
+ u_int32_t dq_cnt; /* count of active references */
u_int32_t dq_id; /* identifier this applies to */
struct ufsmount *dq_ump; /* filesystem that this is taken from */