From owner-freebsd-questions Thu Nov 28 15:33:12 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 7C95037B401 for ; Thu, 28 Nov 2002 15:33:11 -0800 (PST) Received: from web41008.mail.yahoo.com (web41008.mail.yahoo.com [66.218.93.7]) by mx1.FreeBSD.org (Postfix) with SMTP id 2B63243E88 for ; Thu, 28 Nov 2002 15:33:11 -0800 (PST) (envelope-from diegoefe@yahoo.com) Message-ID: <20021128233310.75897.qmail@web41008.mail.yahoo.com> Received: from [200.61.143.86] by web41008.mail.yahoo.com via HTTP; Thu, 28 Nov 2002 17:33:10 CST Date: Thu, 28 Nov 2002 17:33:10 -0600 (CST) From: =?iso-8859-1?q?Diego=20Efe?= Reply-To: diegoefe@hotmail.com Subject: Question from an Argentinian developer To: questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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 Hi, First, I want to thank you all for this great OS, to me, it beats every other Free Unix system, at least... I'm making my first steps in C/C++ programming after a couple years of PHP/Perl/JavaScript scripting. I've started a little program to try to manage filesystem quotas whitout having to manually edit (with $EDITOR) the parameters. 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. Finally, I'm running a 4.6.2 version on a AMD K6-II. I'll appreciate any help and please excuse my poor english. Keep up! Diego www.asesoraweb.com _________________________________________________________ Do You Yahoo!? Información de Estados Unidos y América Latina, en Yahoo! Noticias. Visítanos en http://noticias.espanol.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message