Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Feb 2008 13:04:24 +0900 (JST)
From:      Tod McQuillin <devin@spamcop.net>
To:        Ivan Georgiev <yngwiie@bk.ru>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: quotactl returns double values
Message-ID:  <alpine.BSF.1.00.0802101303030.3053@plexi.pun-pun.prv>
In-Reply-To: <20080209220206.695e5d9b.yngwiie@bk.ru>
References:  <20080209220206.695e5d9b.yngwiie@bk.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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