Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Apr 2001 15:48:28 -0600
From:      "Matt Simerson" <mpsimerson@hostpro.com>
To:        "'freebsd-hackers@freebsd.org'" <freebsd-hackers@FreeBSD.ORG>
Subject:   RE: Quota reporting is inaccurate.
Message-ID:  <8D18712B2604D411A6BB009027F6449801B4B5BF@0SEA01EXSRV1>

next in thread | raw e-mail | index | archive | help


> -----Original Message-----
> From: Richard Hodges [mailto:rh@matriplex.com]
> Sent: Friday, April 13, 2001 1:23 PM
> To: Matt Simerson
> Cc: 'freebsd-hackers@freebsd.org'
> Subject: RE: Quota reporting is inaccurate.
> 
> 
> On Fri, 13 Apr 2001, Matt Simerson wrote:
> 
> > Interestingly enough, I added check_quotas="YES" to /etc/rc.conf and
> > rebooted. That fixed that users quota problem. I'm not sure 
> if it was the
> > rebooting (and clearing the kernels idea of what the quota 
> should be) or if
> > running quotacheck in single user mode did it. I have to 
> guess the former
> > because quotacheck's results should not vary dependent on 
> whether the
> > machine is single user or not.
> 
> A while ago, I wanted to be sure that quotas were working and did some
> tests (on 3.4 release I think).  In general, they worked as expected,
> except that when root changed a file's ownership, the quotas did not
> seem to reflect the change.
> 
> I thought this was fixed in 4.x (when I did some more tests), 
> but maybe this is still an issue?  Are there file ownership changes going
on?

There shouldn't be anything like that happening. Every username is an unique
user on the box and the only poeple with the ability to interactively login
are employees are I log everything they do.

> Another thought is that this user may have had files still open.  Even
> if you "remove" a file, it really does not go away until the last open
> handle is closed.

That seems like the most likely possibility. However, only one daemon can
add or delete files and that's FreeBSD's built in FTP daemon. If the deamon
isn't running (and it wasn't) then the file shouldn't be open (in theory). I
just installed lsof and we'll see if that doesn't reveal anything next time
I see this crop up.

Matt


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




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