Comment 1 for bug 1881648

Revision history for this message
Max Reitz (xanclic) wrote :

But that’s the point of that field, to show the amount of space used by the image on the host.

The man page documents it as: “disk size: How much space the image file occupies on the host file system (may be shown as 0 if this information is unavailable, e.g. because there is no file system)”, and the QAPI definition of ImageInfo documents the actual-size field as “actual size on disk in bytes of the image”.

So it is documented as and intended to be the number of bytes used, not the length of the file.

Max