From owner-freebsd-hackers Fri Apr 13 14:49:10 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from relayout1.micronpc.com (meihost.micronpc.com [209.19.139.2]) by hub.freebsd.org (Postfix) with ESMTP id D67AF37B422 for ; Fri, 13 Apr 2001 14:49:06 -0700 (PDT) (envelope-from mpsimerson@hostpro.com) Received: from mei00wssout01.micron.com (mei00wssout01.micronpc.com [172.30.41.216]) by relayout1.micronpc.com (2.5 Build 2640 (Berkeley 8.8.6)/8.8.4) with SMTP id PAA07665 for ; Fri, 13 Apr 2001 15:48:41 -0600 Received: from 172.30.41.146 by mei00wssout01.micron.com with ESMTP ( Tumbleweed MMS SMTP Relay(WSS) v4.5); Fri, 13 Apr 2001 15:48:41 -0600 X-Server-Uuid: 6b1d535a-5b27-11d3-bf09-00902786a6a3 Received: by imcout1.micronpc.com with Internet Mail Service ( 5.5.2650.21) id <26J7QMX7>; Fri, 13 Apr 2001 15:49:21 -0600 Message-ID: <8D18712B2604D411A6BB009027F6449801B4B5BF@0SEA01EXSRV1> From: "Matt Simerson" To: "'freebsd-hackers@freebsd.org'" Subject: RE: Quota reporting is inaccurate. Date: Fri, 13 Apr 2001 15:48:28 -0600 X-Mailer: Internet Mail Service (5.5.2650.21) MIME-Version: 1.0 X-WSS-ID: 16C9ABB3894743-01-01 Content-Type: text/plain Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > -----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