<div dir="ltr">Hi<div><br></div><div>Disk storage consumption is computed based on image SIZE. This size is obtained when the image is registered in the datastore. This size is computed using the fs_size function libfs.sh, it performs different operations depending on the source type (e.g. gzip files, http sources). For regular files it eventually calls stat, this gives you the apparent size, so no problem with sparses.</div>

<div><br></div><div>However it should call qemu-img info for qcow2 to get the virtual size. This will be easier than update the file size every update, and safer. </div><div><br></div><div>We have an issue for this:</div>

<div><br></div><div><a href="http://dev.opennebula.org/issues/1770">http://dev.opennebula.org/issues/1770</a><br></div><div><br></div><div>Cheers</div><div><br></div><div>Ruben</div><div><br></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Nov 20, 2013 at 2:57 PM, Rolandas Naujikas <span dir="ltr"><<a href="mailto:rolandas.naujikas@mif.vu.lt" target="_blank">rolandas.naujikas@mif.vu.lt</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I'm seeing a problem with space utilization calculations in face of sparse and qcow2 images. Those could occupy less space initially, but grow later. So system datastores can be overprovisioned. Should I open new bug report or add this as comment to some feature/gut report ?<br>


<br>
Regards, Rolandas<br>
______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/<u></u>listinfo.cgi/users-opennebula.<u></u>org</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div><div>-- <br></div></div>Ruben S. Montero, PhD<br>Project co-Lead and Chief Architect<div>OpenNebula - Flexible Enterprise Cloud Made Simple<br>

<a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:rsmontero@opennebula.org" target="_blank">rsmontero@opennebula.org</a> | @OpenNebula</div></div>
</div>