Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Oct 2000 23:42:28 -0500
From:      Mike Pritchard <mpp@mppsystems.com>
To:        Wei-Kai-Wu <wkwu@csie.nctu.edu.tw>
Cc:        freebsd-bugs@FreeBSD.ORG
Subject:   Re: i386/22006: quotacheck halt
Message-ID:  <20001018234228.A35372@mppsystems.com>
In-Reply-To: <200010171100.EAA40296@freefall.freebsd.org>; from wkwu@csie.nctu.edu.tw on Tue, Oct 17, 2000 at 04:00:05AM -0700
References:  <200010171100.EAA40296@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Oct 17, 2000 at 04:00:05AM -0700, Wei-Kai-Wu wrote:
> The following reply was made to PR i386/22006; it has been noted by GNATS.
> 
> From: Wei-Kai-Wu <wkwu@csie.nctu.edu.tw>
> To: Andre Albsmeier <andre.albsmeier@mchp.siemens.de>
> Cc: FreeBSD-gnats-submit@FreeBSD.ORG
> Subject: Re: i386/22006: quotacheck halt
> Date: Tue, 17 Oct 2000 15:16:56 +0800
> 
>  On Mon, Oct 16, 2000 at 10:35:39AM +0200, Andre Albsmeier wrote:
>  > What is the highest uid you have on /raid1 and /raid2 ?
>  > You might want to look into PR #2325...
>  > If this applies to your problem, I might have a patch for you.
>  
>  I have found that there are some files uid = -2.
>  It cause quotacheck halt...
>  
>  By the way, shall we take it as a bug?

It probably doesn't halt.  It just runs for a *very, very* long time.
Uid -2 translates to a very large # as an unsigned int.  quotacheck
then has to examine the entire quota file, even if there are only
quota entries at the very start (say, uids 0 - 10,000), and then finally
get the what maps to uid == -2.  

I've done some thought on how to speed this up in the past, and if anyone
is actually interested in working on the code to fix it, let me know
and I'll share my wisdom.  It isn't trivial, and does require a quota
file version change, but it should work well on systems with large
gaps between UIDs.

-Mike
-- 
Mike Pritchard
mpp@FreeBSD.org or mpp@mppsystems.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001018234228.A35372>