From dpelleg@palraz.rem.cmu.edu  Thu May 16 11:35:51 2002
Return-Path: <dpelleg@palraz.rem.cmu.edu>
Received: from dpelleg.dsl.telerama.com (dpelleg.dsl.telerama.com [205.201.13.235])
	by hub.freebsd.org (Postfix) with ESMTP id 64AE637B411
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 16 May 2002 11:35:36 -0700 (PDT)
Received: from keshet.wburn (keshet [192.168.1.3])
	by dpelleg.dsl.telerama.com (8.11.6/8.11.6) with ESMTP id g4GIZXQ23879
	(using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified NO)
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 16 May 2002 14:35:35 -0400 (EDT)
	(envelope-from dpelleg@palraz.rem.cmu.edu)
Received: (from dpelleg@localhost)
	by keshet.wburn (8.11.6/8.11.6) id g4GIZXW06322;
	Thu, 16 May 2002 14:35:33 -0400 (EDT)
	(envelope-from dpelleg)
Message-Id: <200205161835.g4GIZXW06322@keshet.wburn>
Date: Thu, 16 May 2002 14:35:33 -0400 (EDT)
From: Dan Pelleg <dpelleg+bsd@cs.cmu.edu>
Reply-To: Dan Pelleg <dpelleg+bsd@cs.cmu.edu>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: quotacheck chokes on user -2
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         38156
>Category:       bin
>Synopsis:       quotacheck chokes on user -2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    mpp
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 16 11:40:01 PDT 2002
>Closed-Date:    Thu Feb 01 07:54:23 GMT 2007
>Last-Modified:  Thu Feb 01 07:54:23 GMT 2007
>Originator:     Dan Pelleg
>Release:        FreeBSD 4.5-RELEASE-p4 i386
>Organization:
>Environment:

	
>Description:

 After copying over file from an old Sun, I ran quotacheck. It complained
"can't seek: file too big" (quoting from memory). The files at this point were:

-rw-r-----  1 root  operator     2097120 May 16 13:58 quota.group
-rw-r-----  1 root  operator  4294967264 May 16 13:13 quota.user

quotacheck -v showed:
unknown uid: 4294967294


 after chowning these files and removing the old quota* files, another
quotacheck went fine

>How-To-Repeat:
	
>Fix:

	


>Release-Note:
>Audit-Trail:

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/38156: commit references a PR
Date: Sat, 20 Jan 2007 12:28:23 +0000 (UTC)

 mpp         2007-01-20 12:28:15 UTC
 
   FreeBSD src repository
 
   Modified files:
     sbin/quotacheck      quotacheck.c 
   Log:
   Quota system cleanup.
   
   1) Do not account for uids/gids that appear negative to prevent
      the creation of 131GB+ quota files.  This is the same as the kernel
      now determines which files to provide quota accounting for.
      Related to PR kern/38156.  This should also prevent boots from
      hanging if a negative uid appears in the file systems.
   2) Do not count system files in the usage counts.  These currently are
      file system snapshot and quota data files.  This is how the kernel
      now handles those files.
   3) Correctly generate new quota data files if the current files
      do not exist or are zero length in size.  PR kern/30958.
      It should now be possible to newfs / mount / touch quota.{user,group}
      and quotaon a file system and have everything work.
   4) Change some diagnostics to report the file system and type of
      id (uid or gid) that is being reported.
   5) Truncate the quota data files if possible, instead of letting
      them grow to a big enough size to hold the largest UID/GID on
      the system (typically "nobody").  The kernel should now be able to
      grow the files as needed without deadlocking the system.
   
   PR:  kern/30958, kern/38156
   
   Revision  Changes    Path
   1.27      +137 -29   src/sbin/quotacheck/quotacheck.c
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->patched 
State-Changed-By: mpp 
State-Changed-When: Thu Jan 25 11:52:02 UTC 2007 
State-Changed-Why:  
Fixed in -current. 

Patch to -stable to follow after more stress testing in -current. 


Responsible-Changed-From-To: freebsd-bugs->mpp 
Responsible-Changed-By: mpp 
Responsible-Changed-When: Thu Jan 25 11:52:02 UTC 2007 
Responsible-Changed-Why:  
Fixed in -current. 

Patch to -stable to follow after more stress testing in -current. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=38156 
State-Changed-From-To: patched->closed 
State-Changed-By: mpp 
State-Changed-When: Thu Feb 1 07:53:56 UTC 2007 
State-Changed-Why:  
This should now be fixed in -stable and 7.0-current. 

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