From owner-freebsd-hackers@FreeBSD.ORG Sun Feb 10 04:44:57 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 30B5816A418 for ; Sun, 10 Feb 2008 04:44:57 +0000 (UTC) (envelope-from devin@spamcop.net) Received: from mail.distalzou.net (203.141.139.231.static.zoot.jp [203.141.139.231]) by mx1.freebsd.org (Postfix) with ESMTP id BF4A313C442 for ; Sun, 10 Feb 2008 04:44:56 +0000 (UTC) (envelope-from devin@spamcop.net) Received: from plexi.pun-pun.prv ([192.168.7.29]) by mail.distalzou.net with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1JO3QX-0005cS-0m; Sun, 10 Feb 2008 13:04:25 +0900 Date: Sun, 10 Feb 2008 13:04:24 +0900 (JST) From: Tod McQuillin X-X-Sender: devin@plexi.pun-pun.prv To: Ivan Georgiev In-Reply-To: <20080209220206.695e5d9b.yngwiie@bk.ru> Message-ID: References: <20080209220206.695e5d9b.yngwiie@bk.ru> User-Agent: Alpine 1.00 (BSF 882 2007-12-20) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII Cc: freebsd-hackers@freebsd.org Subject: Re: quotactl returns double values X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Feb 2008 04:44:57 -0000 On Sat, 9 Feb 2008, Ivan Georgiev wrote: > I was just playing, trying to see how quotactl works, > but in all my tries the values returned are doubled, > > the values stored in my_st->dqb_bhardlimit and my_st->dqb_curblocks > are the real values times two, the hard limit on the user is 102400K, > but my_st->dqb_bhardlimit holds 204800K. I hope you are remembering that the limits are measured in blocks -- a block is 512 bytes. Thus a limit of 102400K is 204800 blocks, since each 1K holds 2 blocks. -- Tod McQuillin