1
0
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:
Ryota Ozaki 2009-08-05 14:35:17 +02:00 committed by Daniel Veillard
parent a480572244
commit 8b54ef4147

View File

@ -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]);