From kaczor@wotan.2slo.waw.pl Tue Oct  5 09:00:49 1999
Return-Path: <kaczor@wotan.2slo.waw.pl>
Received: from wotan.2slo.waw.pl (wotan.2slo.waw.pl [195.117.4.98])
	by hub.freebsd.org (Postfix) with ESMTP id 85A161508A
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  5 Oct 1999 09:00:26 -0700 (PDT)
	(envelope-from kaczor@wotan.2slo.waw.pl)
Received: (from kaczor@localhost)
	by wotan.2slo.waw.pl (8.9.3/8.9.1) id PAA59423;
	Tue, 5 Oct 1999 15:06:59 +0200 (CEST)
	(envelope-from kaczor)
Message-Id: <199910051306.PAA59423@wotan.2slo.waw.pl>
Date: Tue, 5 Oct 1999 15:06:59 +0200 (CEST)
From: Wiktor <kaczor@wotan.2slo.waw.pl>
Reply-To: kaczor@wotan.2slo.waw.pl
To: FreeBSD-gnats-submit@freebsd.org
Subject: Difference between number of blocks and size in bytes*512
X-Send-Pr-Version: 3.2

>Number:         14143
>Category:       i386
>Synopsis:       Difference between number of blocks and size in bytes*512
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    mpp
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct  5 09:10:01 PDT 1999
>Closed-Date:    Fri Oct 8 02:56:58 PDT 1999
>Last-Modified:  Fri Oct  8 02:59:08 PDT 1999
>Originator:     Wiktor Niesiobedzki
>Release:        FreeBSD 3.3-STABLE i386
>Organization:
2 SLO
>Environment:
>Description:
My file quota.user have difference between size reported by stat->st_size and
stat->st_block. st_size is 37448 times larger than st_block.
>How-To-Repeat:
Very hard to say. I have 4gb partition and about 160 users. And quota system
just did so odd file. 
>Fix:
I didn't find out any.

>Release-Note:
>Audit-Trail:

From: Mike Pritchard <mpp@FreeBSD.org>
To: kaczor@wotan.2slo.waw.pl
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: i386/14143: Difference between number of blocks and size in bytes*512
Date: Wed, 6 Oct 1999 07:55:47 -0500 (CDT)

 > >Number:         14143
 > >Synopsis:       Difference between number of blocks and size in bytes*512
 > >Description:
 > My file quota.user have difference between size reported by stat->st_size and
 > stat->st_block. st_size is 37448 times larger than st_block.
 > >How-To-Repeat:
 > Very hard to say. I have 4gb partition and about 160 users. And quota system
 > just did so odd file. 
 
 The quota system will create sparse files (large gaps of
 unwritten zero filled blocks are not actually allocated disk
 space), which is probably why the file size is so much larger 
 than the actual number of blocks used by the quota file.
 
 Do you have extremely large gaps in your UID space?  Is the file system
 NFS mounted on other systems, and is it possible that something tried
 to set a uid/gid to -2 or some such value on a file on the filesystem
 in question?
 
 Try running "find -nouser -nogroup /filesystem" to try and find
 any files that have a uid/gid that are not assigned in /etc/passwd.
 These are usually the files that cause the quota file to
 appear to be so large.
 
 -Mike
 -- 
 Mike Pritchard
 mpp@FreeBSD.org or mpp@mpp.pro-ns.net
 
Responsible-Changed-From-To: freebsd-bugs->mpp 
Responsible-Changed-By: mpp 
Responsible-Changed-When: Thu Oct 7 03:48:42 PDT 1999 
Responsible-Changed-Why:  
I've already sent a followup to the originator, so I'll handle 
this until I hear something back. 
State-Changed-From-To: open->closed 
State-Changed-By: mpp 
State-Changed-When: Fri Oct 8 02:56:58 PDT 1999 
State-Changed-Why:  
iSubmitter states that the problem was with unassigned uids/or very large 
uids existing in the file system, which created a very large spare 
^spare^sparse 
quota file. 
>Unformatted:
