From owner-freebsd-questions Fri Nov 29 14:18:18 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 98B0637B401 for ; Fri, 29 Nov 2002 14:18:17 -0800 (PST) Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id A7D5143EC5 for ; Fri, 29 Nov 2002 14:18:14 -0800 (PST) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr364-a19.otenet.gr [195.167.109.51]) by mailsrv.otenet.gr (8.12.6/8.12.6) with ESMTP id gATMI0r7001273; Sat, 30 Nov 2002 00:18:05 +0200 (EET) Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.12.6/8.12.6) with ESMTP id gATMHY5b001272; Sat, 30 Nov 2002 00:17:55 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by gothmog.gr (8.12.6/8.12.6/Submit) id gATJRiOn091032; Fri, 29 Nov 2002 21:27:44 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Fri, 29 Nov 2002 21:27:44 +0200 From: Giorgos Keramidas To: diegoefe@hotmail.com Cc: questions@freebsd.org Subject: Re: Question from an Argentinian developer Message-ID: <20021129192744.GG1092@gothmog.gr> References: <20021128233310.75897.qmail@web41008.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021128233310.75897.qmail@web41008.mail.yahoo.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2002-11-28 17:33, Diego Efe wrote: > > I've started a little program to try to manage filesystem quotas > whitout having to manually edit (with $EDITOR) the parameters. quotactl(2) should be all you need. > Investigating I found out that I have the quotactl() function to do > the job and the statfs() call to retrieve filesystem information, > but here's the question. > > I'm having problems with the values that the statfs retrieves. I've > been comparing mi values with the ones returned by the webmin > (webmin.org) utility, who in turn calls the edquota, quotacheck, > etc. functions and can't understand the system. In some cases seems > to work using statfs->f_blocks * dqb_curblocks and the like but, to > finally ask the question: > > I have made the whole circuit of FreeBSD documentation, really, but > still can't understand the values. Is there a question somewhere above? You have described parts of what you need to write your own program to handle quotas. But without seeing either the program you have, or a very detailed description of how it works, all one can tell you is "Go on, it's not a bad idea" :/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message