mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Add an allocation unit when calling qemu-img
* src/storage_backend.c: as the absence of units can be interpreted in diverging ways depending on the version
This commit is contained in:
parent
a480572244
commit
8b54ef4147
@ -446,7 +446,7 @@ virStorageBackendCreateQemuImg(virConnectPtr conn,
|
|||||||
|
|
||||||
|
|
||||||
/* Size in KB */
|
/* Size in KB */
|
||||||
snprintf(size, sizeof(size), "%llu", vol->capacity/1024);
|
snprintf(size, sizeof(size), "%lluK", vol->capacity/1024);
|
||||||
|
|
||||||
if (virRun(conn, imgargv, NULL) < 0) {
|
if (virRun(conn, imgargv, NULL) < 0) {
|
||||||
VIR_FREE(imgargv[0]);
|
VIR_FREE(imgargv[0]);
|
||||||
|
Loading…
Reference in New Issue
Block a user