Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Quotas -- How Much is a Block ?

1 view
Skip to first unread message

Desmond Coughlan

unread,
Dec 28, 1999, 3:00:00 AM12/28/99
to
Hi,
I've installed an IMAP server, and everything is working as it should. I
have 1000 MB set aside for /var/mail and have enabled quotas on this
partition, as we have about 90 users, and have decided on 10 MB per
user.

My question is this: how much is a block? I was told that 1 block ==
512 bytes, and so therefore, 2 blocks == 1 Kb.

If this is the case, then if I set a limit of 200 blocks, will this
represent 10 MB?

Yet another person told me that 1 block is 1 Kb, in which case, the
calculations are thrown out ...

Can someone tell me how many blocks constitute 10 MB?

Incidentally, yes, I have looked in the FAQ, and the handbook ...

Thanks in advance. :-)

--
Desmond Coughlan |Restez Zen ... UNIX peut le faire
des...@coughlan.net
http://www.coughlan.net/desmond

Thomas Wolf

unread,
Dec 28, 1999, 3:00:00 AM12/28/99
to
Desmond Coughlan schrieb in Nachricht ...

1 Block = 512 Bytes:

# ls -l testfile
-rw-r--r-- 1 root wheel 1024 Dec 28 14:10 testfile

# ls -ls testfile (report in blocks)
2 -rw-r--r-- 1 root wheel 1024 Dec 28 14:10 testfile
^

# ls -lsk testfile (report in 1k-blocks)
1 -rw-r--r-- 1 root wheel 1024 Dec 28 14:10 testfile
^

Thomas


Desmond Coughlan

unread,
Dec 28, 1999, 3:00:00 AM12/28/99
to
Thomas Wolf <wo...@via.at> wrote:

[snip]

> >Can someone tell me how many blocks constitute 10 MB?

[snip]

> 1 Block = 512 Bytes:
>
> # ls -l testfile

Excellent ... I've learned three things, in one post!

Thank you !

D.

0 new messages