quotactl returns double values
devin at spamcop.net
Sun Feb 10 04:44:57 UTC 2008
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.
More information about the freebsd-hackers