From Andre.Albsmeier@mchp.siemens.de  Mon Dec 30 03:45:23 1996
Received: from david.siemens.de (david.siemens.de [146.254.1.1])
          by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id DAA21367
          for <FreeBSD-gnats-submit@freebsd.org>; Mon, 30 Dec 1996 03:45:22 -0800 (PST)
Received: from salomon.mchp.siemens.de (salomon.mchp.siemens.de [139.23.33.13]) by david.siemens.de (8.8.3/8.8.0) with ESMTP id MAA05346 for <FreeBSD-gnats-submit@freebsd.org>; Mon, 30 Dec 1996 12:41:22 +0100 (MET)
Received: from curry.mchp.siemens.de (smtpd@curry.zfe.siemens.de [146.180.31.23]) by salomon.mchp.siemens.de (8.8.2/8.8.0) with ESMTP id MAA06240 for <FreeBSD-gnats-submit@freebsd.org>; Mon, 30 Dec 1996 12:45:07 +0100 (MET)
Received: (from smtpd@localhost)
          by curry.mchp.siemens.de (8.8.4/8.8.4)
	  id MAA09087 for <FreeBSD-gnats-submit@freebsd.org>; Mon, 30 Dec 1996 12:45:06 +0100 (MET)
Received: from server.us.tld(192.168.16.33)
 via SMTP by curry.top.tld, id smtpdAAAa09085; Mon Dec 30 11:45:00 1996
Received: (from andre@localhost)
          by server.us.tld (8.8.4/8.8.4)
	  id MAA19639; Mon, 30 Dec 1996 12:44:59 +0100 (MET)
Message-Id: <199612301144.MAA19639@server.us.tld>
Date: Mon, 30 Dec 1996 12:44:59 +0100 (MET)
From: Andre Albsmeier <Andre.Albsmeier@mchp.siemens.de>
Reply-To: Andre.Albsmeier@mchp.siemens.de
To: FreeBSD-gnats-submit@freebsd.org
Subject: quota.user enlarged, no boot on 2.2-BETA
X-Send-Pr-Version: 3.2

>Number:         2325
>Category:       kern
>Synopsis:       quota.user enlarged, no boot on 2.2-BETA
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 30 03:50:01 PST 1996
>Closed-Date:    Sat Jan 20 15:06:35 GMT 2007
>Last-Modified:  Sat Jan 20 15:06:35 GMT 2007
>Originator:     Andre Albsmeier
>Release:        FreeBSD 2.2-RELEASE i386
>Organization:
>Environment:

Copyright (c) 1992-1996 FreeBSD Inc.
Copyright (c) 1982, 1986, 1989, 1991, 1993
	The Regents of the University of California.  All rights reserved.

FreeBSD 2.2-RELEASE #1: Thu Dec 19 12:04:51 MET 1996
    root@server.us.tld:/server/adm/FreeBSD/src/sys/src-2.2/sys/compile/SERVER
Calibrating clock(s) relative to mc146818A clock ... i586 clock: 166109935 Hz, i8254 clock: 1193320 Hz
CPU: Pentium (166.09-MHz 586-class CPU)
  Origin = "GenuineIntel"  Id = 0x52c  Stepping=12
  Features=0x1bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8>
real memory  = 33554432 (32768K bytes)
avail memory = 31072256 (30344K bytes)
Probing for devices on PCI bus 0:
chip0 <Intel 82439> rev 1 on pci0:0
chip1 <Intel 82371SB PCI-ISA bridge> rev 0 on pci0:7:0
chip2 <Intel 82371SB IDE interface> rev 0 on pci0:7:1
ahc0 <Adaptec 2940 Ultra SCSI host adapter> rev 0 int a irq 9 on pci0:9
ahc0: aic7880 Single Channel, SCSI Id=7, 16 SCBs
ahc0: target 0 Tagged Queuing Device
(ahc0:0:0): "Quantum XP34300 81HB" type 0 fixed SCSI 2
sd0(ahc0:0:0): Direct-Access 4101MB (8399520 512 byte sectors)
sd0(ahc0:0:0): with 3907 cyls, 20 heads, and an average 107 sectors/track
ahc0: target 1 Tagged Queuing Device
(ahc0:1:0): "Quantum XP34300 81HB" type 0 fixed SCSI 2
sd1(ahc0:1:0): Direct-Access 4101MB (8399520 512 byte sectors)
sd1(ahc0:1:0): with 3907 cyls, 20 heads, and an average 107 sectors/track
ahc0: target 2 Tagged Queuing Device
(ahc0:2:0): "Quantum XP34300 81HB" type 0 fixed SCSI 2
sd2(ahc0:2:0): Direct-Access 4101MB (8399520 512 byte sectors)
sd2(ahc0:2:0): with 3907 cyls, 20 heads, and an average 107 sectors/track
(ahc0:3:0): "HP HP35480A 1109" type 1 removable SCSI 2
st3(ahc0:3:0): Sequential-Access density code 0x13, variable blocks, write-enabled
(ahc0:4:0): "DEC DLT2700 830A" type 1 removable SCSI 2
st4(ahc0:4:0): Sequential-Access density code 0x19,  drive empty
(ahc0:4:1): "DEC TZ Media Changer 830A" type 8 removable SCSI 2
ch4(ahc0:4:1): Medium-Changer 7 slot(s) 1 drive(s) 1 arm(s) 0 i/e-slot(s)
(ahc0:5:0): "NEC CD-ROM DRIVE:502 2.0r" type 5 removable SCSI 2
cd5(ahc0:5:0): CD-ROM can't get the size
(ahc0:6:0): "TOSHIBA CD-ROM XM-3701TA 3205" type 5 removable SCSI 2
cd6(ahc0:6:0): CD-ROM can't get the size
ahc1 <Adaptec 2940 Ultra SCSI host adapter> rev 0 int a irq 10 on pci0:10
ahc1: aic7880 Single Channel, SCSI Id=7, 16 SCBs
(ahc1:0:0): "IMPRIMIS 94601-15 4202" type 0 fixed SCSI 1
sd8(ahc1:0:0): Direct-Access 992MB (2031705 512 byte sectors)
sd8(ahc1:0:0): with 1931 cyls, 15 heads, and an average 70 sectors/track
(ahc1:1:0): "IMPRIMIS 94601-15 4202" type 0 fixed SCSI 1
sd9(ahc1:1:0): Direct-Access 992MB (2031705 512 byte sectors)
sd9(ahc1:1:0): with 1931 cyls, 15 heads, and an average 70 sectors/track
ahc1: target 2 Tagged Queuing Device
(ahc1:2:0): "SEAGATE ST41650 6414" type 0 fixed SCSI 2
sd10(ahc1:2:0): Direct-Access 1350MB (2766300 512 byte sectors)
sd10(ahc1:2:0): with 2107 cyls, 15 heads, and an average 87 sectors/track
ahc1: target 3 Tagged Queuing Device
(ahc1:3:0): "SEAGATE ST42400N 0116" type 0 fixed SCSI 2
sd11(ahc1:3:0): Direct-Access 2030MB (4159462 512 byte sectors)
sd11(ahc1:3:0): with 2626 cyls, 19 heads, and an average 83 sectors/track
ahc1: target 5 Tagged Queuing Device
(ahc1:5:0): "SEAGATE ST15230N 0298" type 0 fixed SCSI 2
sd13(ahc1:5:0): Direct-Access 4095MB (8386733 512 byte sectors)
sd13(ahc1:5:0): with 3992 cyls, 19 heads, and an average 110 sectors/track
ahc1: target 6 Tagged Queuing Device
(ahc1:6:0): "SEAGATE ST15230N 0298" type 0 fixed SCSI 2
sd14(ahc1:6:0): Direct-Access 4095MB (8386733 512 byte sectors)
sd14(ahc1:6:0): with 3992 cyls, 19 heads, and an average 110 sectors/track
de0 <Digital 21041 Ethernet> rev 17 int a irq 11 on pci0:11
de0: 21041 [10Mb/s] pass 1.1
de0: address 00:00:c0:4c:5b:d3
de1 <Digital 21041 Ethernet> rev 17 int a irq 12 on pci0:12
de1: 21041 [10Mb/s] pass 1.1
de1: address 00:00:c0:28:05:df
Probing for devices on the ISA bus:
sc0 at 0x60-0x6f irq 1 on motherboard
sc0: VGA color <9 virtual consoles, flags=0x0>
ed0 not found at 0x240
lpt0 not found at 0xffffffff
sio0 at 0x3f8-0x3ff irq 4 on isa
sio0: type 16550A
sio1 at 0x2f8-0x2ff irq 3 on isa
sio1: type 16550A
pca0 on motherboard
pca0: PC speaker audio driver
wdc0 at 0x1f0-0x1f7 irq 14 flags 0x80ff80ff on isa
wdc0: unit 0 (wd0): <WDC AC2250>, 32-bit, multi-block-16
wd0: 244MB (499950 sectors), 1010 cyls, 9 heads, 55 S/T, 512 B/S
fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
fdc0: NEC 72065B
fd0: 1.44MB 3.5in
1 3C5x9 board(s) on ISA found at 0x260
ep0 at 0x260-0x26f irq 7 on isa
ep0: aui/utp/bnc[*BNC*] address 00:a0:24:5b:e5:05
npx0 on motherboard
npx0: INT 16 interface
ccd0-1: Concatenated disk drivers
de0: enabling BNC port
de1: enabling BNC port


>Description:

I am running 2 Quantum Atlas 4GB Harddrives concatenated together to
a big 8GB virtual disk. I have enabled userquotas on this drive and used
edquota to configure it. This seems to work for a few days when suddenly
booting stops at the line "Checking quotas". You see the drive's LEDs 
flickering for a while and then the machine seems to stop. However,
pressing CTRL-C works, and the normal boot procedure continues.
When looking in the root directory of the affected filesystems we find
that the quota file has grown extremly:

-rw-r-----   1 root     operator  4294967264 Dec  2 09:30 quota.user

It does not appear to occupy the space really.

>How-To-Repeat:

Don't know. If you want me to do some tests, tell me.

>Fix:
>Release-Note:
>Audit-Trail:

From: Mike Pritchard <mpp>
To: Andre.Albsmeier@mchp.siemens.de
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: kern/2325: quota.user enlarged, no boot on 2.2-BETA
Date: Mon, 30 Dec 1996 13:20:47 -0800 (PST)

 Andre Albsmeier wrote:
 > 
 > 
 > >Number:         2325
 > >Category:       kern
 > >Synopsis:       quota.user enlarged, no boot on 2.2-BETA
 > >Description:
 > 
 > I am running 2 Quantum Atlas 4GB Harddrives concatenated together to
 > a big 8GB virtual disk. I have enabled userquotas on this drive and used
 > edquota to configure it. This seems to work for a few days when suddenly
 > booting stops at the line "Checking quotas". You see the drive's LEDs 
 > flickering for a while and then the machine seems to stop. However,
 > pressing CTRL-C works, and the normal boot procedure continues.
 > When looking in the root directory of the affected filesystems we find
 > that the quota file has grown extremly:
 > 
 > -rw-r-----   1 root     operator  4294967264 Dec  2 09:30 quota.user
 > 
 > It does not appear to occupy the space really.
 > 
 > >How-To-Repeat:
 > 
 > Don't know. If you want me to do some tests, tell me.
 
 Check your file systems for files owned by a negative uid.
 Quotacheck should probably ignore uids < 0.
 -- 
 Mike Pritchard
 mpp@FreeBSD.org
 "Go that way.  Really fast.  If something gets in your way, turn"

From: Mike Pritchard <mpp>
To: Andre.Albsmeier@mchp.siemens.de
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: kern/2325: quota.user enlarged, no boot on 2.2-BETA
Date: Mon, 30 Dec 1996 13:27:32 -0800 (PST)

 Andre Albsmeier wrote:
 > 
 > 
 > >Number:         2325
 > >Category:       kern
 > >Synopsis:       quota.user enlarged, no boot on 2.2-BETA
 > >Description:
 > 
 > I am running 2 Quantum Atlas 4GB Harddrives concatenated together to
 > a big 8GB virtual disk. I have enabled userquotas on this drive and used
 > edquota to configure it. This seems to work for a few days when suddenly
 > booting stops at the line "Checking quotas". You see the drive's LEDs 
 > flickering for a while and then the machine seems to stop. However,
 > pressing CTRL-C works, and the normal boot procedure continues.
 > When looking in the root directory of the affected filesystems we find
 > that the quota file has grown extremly:
 > 
 > -rw-r-----   1 root     operator  4294967264 Dec  2 09:30 quota.user
 > 
 > It does not appear to occupy the space really.
 > 
 > >How-To-Repeat:
 > 
 > Don't know. If you want me to do some tests, tell me.
 
 I just remembered - try running quotacheck with the -v option.
 It will report any unknown uids/gids in the file system.
 Very large uids/gids (and probably negative uids) will cause 
 quotacheck to run for a long time since it doesn't handle large gaps in
 uids very well.
 -- 
 Mike Pritchard
 mpp@FreeBSD.org
 "Go that way.  Really fast.  If something gets in your way, turn"
State-Changed-From-To: open->analyzed 
State-Changed-By: mpp 
State-Changed-When: Thu Jan 2 09:06:38 PST 1997 
State-Changed-Why:  
The problem is that very large uids in the file system 
can cause quota check to run for an unacceptable 
amount of time.  I have a couple of ideas on how 
to avoid this problem. 
Responsible-Changed-From-To: freebsd-bugs->mpp 
Responsible-Changed-By: mpp 
Responsible-Changed-When: Thu Jan 2 09:07:39 PST 1997 
Responsible-Changed-Why:  
I'm working on it... 
Responsible-Changed-From-To: mpp->freebsd-bugs 
Responsible-Changed-By: steve 
Responsible-Changed-When: Sat Aug 16 16:34:43 PDT 1997 
Responsible-Changed-Why:  
Return this back to the orphaned pool of PRs. 
State-Changed-From-To: analyzed->feedback 
State-Changed-By: mike 
State-Changed-When: Sat Jul 21 23:15:15 PDT 2001 
State-Changed-Why:  

Does this problem still occur in newer versions of FreeBSD, 
such as 4.3-RELEASE? 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=2325 

From: Mike Barcroft <mike@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: kern/2325: quota.user enlarged, no boot on 2.2-BETA
Date: Sun, 22 Jul 2001 12:54:30 -0400

 Adding to Audit-Trail.
 
 On Sun, Jul 22, 2001 at 10:40:58AM +0200, Andre Albsmeier wrote:
 > On Sat, 21-Jul-2001 at 23:15:33 -0700, mike@FreeBSD.org wrote:
 > > Synopsis: quota.user enlarged, no boot on 2.2-BETA
 > > 
 > > State-Changed-From-To: analyzed->feedback
 > > State-Changed-By: mike
 > > State-Changed-When: Sat Jul 21 23:15:15 PDT 2001
 > > State-Changed-Why: 
 > > 
 > > Does this problem still occur in newer versions of FreeBSD,
 > > such as 4.3-RELEASE?
 > > 
 > > http://www.FreeBSD.org/cgi/query-pr.cgi?pr=2325
 > 
 > Yes, unfortunately. As you can read in the PR, Mike Pritchard
 > had ideas how to solve this but they were never implemented.
 > 
 > 	-Andre
State-Changed-From-To: feedback->suspended 
State-Changed-By: mike 
State-Changed-When: Sun Jul 22 10:59:07 PDT 2001 
State-Changed-Why:  

mpp confirms this is still a bug.  Awaiting fix and committer. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=2325 
State-Changed-From-To: suspended->closed 
State-Changed-By: mpp 
State-Changed-When: Sat Jan 20 14:57:47 UTC 2007 
State-Changed-Why:  
Fixed in 7.0-current with the following revisions: 

src/usr/sbin/quotacheck.c rev 1.27  
src/sys/ufs/ffs/ffs_alloc.c rev 1.143 
src/sys/ufs/ffs/ffs_snapshot.c rev 1.132 
src/sys/ufs/ufs/quota.h rev 1.29 
src/sys/ufs/ufs/ufs_quota.c rev 1.86 

http://www.freebsd.org/cgi/query-pr.cgi?pr=2325 
>Unformatted:
