mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-26 02:50:32 +03: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 */
|
||||
snprintf(size, sizeof(size), "%llu", vol->capacity/1024);
|
||||
snprintf(size, sizeof(size), "%lluK", vol->capacity/1024);
|
||||
|
||||
if (virRun(conn, imgargv, NULL) < 0) {
|
||||
VIR_FREE(imgargv[0]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user