[PATCH 2/3] xfsprogs: xfs_quota: don't double project block counts

Christoph Hellwig hch at infradead.org
Thu Aug 25 00:01:18 CDT 2011


On Wed, Aug 24, 2011 at 04:53:42PM -0500, Alex Elder wrote:
> In projects_free_space_data() all of the block counts returned are
> doubled.  This was probably a mistaken attempt to convert to or from
> 512-byte basic block units.  The caller expects the value returned
> to be in 512-byte units, which is exactly what the fs_disk_quota
> structure holds, so there should be no doubling.
> 
> The effect of this bug is that the disk space used by the "df"
> xfs_quota command shows block counts twice what they should be.
> 
> SGI PV 1015651
> 
> Signed-off-by: Alex Elder <aelder at sgi.com>

Looks good,

Reviewed-by: Christoph Hellwig <hch at lst.de>




More information about the xfs mailing list