[CentOS] dumpe2fs and repquota not agreeing on block size

Tru Huynh tru at centos.org
Mon Oct 27 09:07:21 UTC 2008

On Sun, Oct 26, 2008 at 08:37:26PM -0500, Neil Aggarwal wrote:
> Hello:
> I am trying to set up user quotas on my /var
> partition to enforce limits on user's mailbox
> sizes.  The machine is running CentOS 5.
> When I do this:
> /sbin/dumpe2fs /dev/md2 | grep 'Block size'
> Block size:               4096
> That tells me the block size is 4k.
the filesystem block size is basically the minimal used size
for any allocated object.
> But, if I do:
> repquota /var
> It is telling me that one of my users is
> currently using 10264 blocks.  But, if I look
> at their mail file, it is 10493792 bytes,
10493792/1024=10247 kilo bytes used

> which means they should be using 2562 blocks
> or so.
no, the quota are expressed in kB units, not
filesystem block unit.

> Any idea why dumpe2fs is giving a 4K block size?
Because they don't serve the same purpose.

Tru Huynh (mirrors, CentOS-3 i386/x86_64 Package Maintenance)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.centos.org/pipermail/centos/attachments/20081027/5fbf1ae5/attachment.sig>

More information about the CentOS mailing list