Share

Linux DiskQuota

Tracker: Bugs

5 quota outputs limits in bytes, but labels them "blocks" - ID: 2875137
Last Update: Settings changed ( jkar8572 )

The quota, edquota and repquota commands all seem to list the disk usage
limits in bytes (or megabytes, if using -s with quota and repquota).
However the output uses the label "blocks." This in inaccurate and leads
to confusion when using a blocksize other than 1KB.

I'm seeing this problem on Linux kernel 2.6.18-128.el5 with ext3 with a
blocksize of 4KB.

It looks like maybe the block size returned from the kernel is in bytes?
Is that true for all versions of the kernel? All file system types?


Mark Doliner ( thekingant ) - 2009-10-08 22:28

5

Open

Fixed

Jan Kara

None

None

Public


Comments ( 2 )




Date: 2009-10-20 04:37
Sender: jkar8572Project Admin

Ok, the fix is committed into the CVS.


Date: 2009-10-19 12:56
Sender: jkar8572Project Admin

Thanks for your report. You're right. The kernel reports used space and
quota limits in bytes. It's just a matter of userspace tools how they
display the numbers (and blocks is there for historical reasons). I'll fix
the headers in those tools.


Log in to comment.

Attached File

No Files Currently Attached

Changes ( 3 )

Field Old Value Date By
resolution_id Accepted 2009-10-20 04:37 jkar8572
assigned_to nobody 2009-10-19 12:56 jkar8572
resolution_id None 2009-10-19 12:56 jkar8572