From owner-freebsd-bugs Wed Oct 6 6:11:18 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 0A49B14C2F for ; Wed, 6 Oct 1999 06:11:15 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id GAA60696; Wed, 6 Oct 1999 06:10:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Wed, 6 Oct 1999 06:10:02 -0700 (PDT) Message-Id: <199910061310.GAA60696@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Mike Pritchard Subject: Re: i386/14143: Difference between number of blocks and size in bytes*512 Reply-To: Mike Pritchard Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR i386/14143; it has been noted by GNATS. From: Mike Pritchard 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message