Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Feb 1999 14:59:02 -0500 (EST)
From:      "Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com>
To:        chrismar@readington.com (Chris)
Cc:        cjclark@home.com, neubyneu@twcny.rr.com, freebsd-questions@FreeBSD.ORG
Subject:   Re: Disk Quota question...
Message-ID:  <199902201959.OAA14936@cc942873-a.ewndsr1.nj.home.com>
In-Reply-To: <Pine.BSF.4.10.9902200251200.29558-100000@walnut.readington.com> from Chris at "Feb 20, 99 02:55:28 am"

next in thread | previous in thread | raw e-mail | index | archive | help
Chris wrote,
> Forgive me if I'm wrong, but when you do a 'df' it says
> Filesystem  1K-blocks, so wouldn't that mean that a block 
> for quota would be 1k?

You get '1K-blocks' if you have your 'BLOCKSIZE' varaible set to 'k.'
Here is my output,

[103:~] unsetenv BLOCKSIZE
[104:~] df
Filesystem  512-blocks     Used    Avail Capacity  Mounted on
/dev/wd0s2a     196958    34886   146316    19%    /
/dev/wd0s2f    8946500  3545268  4685512    43%    /usr
/dev/wd0s2e    2383390  1838546   354174    84%    /var
procfs               8        8        0   100%    /proc
/dev/wd0s1     3992288  2100296  1891992    53%    /mnt/c
[105:~] setenv BLOCKSIZE k
[106:~] df
Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
/dev/wd0s2a     98479    17443    73158    19%    /
/dev/wd0s2f   4473250  1772634  2342756    43%    /usr
/dev/wd0s2e   1191695   919273   177087    84%    /var
procfs              4        4        0   100%    /proc
/dev/wd0s1    1996144  1050148   945996    53%    /mnt/c

> When I set up my quotas I would
> give everyone 5000 blocks, which I thought roughly
> translated in 5 MB.  I haven't had any complaints yet
> about how "I'm supposed to get 5 MB, but I'm only
> able to use 2.5"

This should be easy enough to test. Assuming a user has all or the
vast majority of his files in his home directory,

[107:~] du -s ~user

Will give the usage in 512-blocks (or 1k-blocks if you have BLOCKSIZE
set to 'k'). Then compare that to,

[108:~] quota -vu user

Which also prints usage and quotas. I wonder if 'quota' is affected by
'BLOCKSIZE.' I'd try this out, but I do not have quotas set up on my
personal machine here.
-- 
Crist J. Clark                           cjclark@home.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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