[
https://issues.apache.org/jira/browse/VCL-452?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Aaron Peeler resolved VCL-452.
------------------------------
Resolution: Fixed
> Linux.pm get_file_size does not handle thinly-provisioned files correctly
> -------------------------------------------------------------------------
>
> Key: VCL-452
> URL: https://issues.apache.org/jira/browse/VCL-452
> Project: VCL
> Issue Type: Bug
> Components: vcld (backend)
> Affects Versions: 2.2.1
> Reporter: Andy Kurth
> Assignee: Andy Kurth
> Priority: Minor
> Fix For: 2.3
>
>
> The get_file_size subroutine in Linux.pm is pretty tricky. The size of a file
> isn't as straightforward as one would think. It currently returns the `ls`
> size of the file which is not accurate when the actual size of a .vmdk file
> is requested. The `du` size is more relevent. The subroutine doesn't use
> `du` because it doesn't exist on ESXi. Instead, `stat` is used and the sizes
> are calculated based on blocks used and block size.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira