Thread: quto / blocks
View Single Post

   
  #2 (permalink)  
Old 01-19-2008, 08:42 AM
Pierre Brua
 
Posts: n/a
Default Re: quto / blocks

Fri, 14 Dec 2007 12:44:41 +0100, Séverin Richard wrote*:
> I enconter problems managing disk quotas.
> I thought that hard limit was in Mo, but it's obviously "blocks"
> But trying to evaluate the size of a block give me unexpexted results:
>
> 1_ How can i know the size of my blocks??


The size of blocks on a filesystem (sda1 in our example) is shown by the
following command:
sudo dumpe2fs /dev/sda1|grep -i "block size"

The usage information given by edquota is only an indication and may be
inaccurate. In your case, the block size is probably 64KB
(8920*1024*1024/156212=59875).
If you stay below the 64KB*block count limit, I suppose you won't be
locked by the system. Avoid little files since each one eat 64K anyway. A
65K file will consume 2 blocks.

Hope it helps,
--
Pierre Brua
System & Application Engineer
http://pierrebrua.com/

Reply With Quote