From: Ryota Ozaki Date: Wed, 5 Aug 2009 12:35:17 +0000 (+0200) Subject: Add an allocation unit when calling qemu-img X-Git-Tag: v0.7.0~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b54ef4147cff48c4458d745be720d3e3e30fd1c;p=thirdparty%2Flibvirt.git 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 --- diff --git a/src/storage_backend.c b/src/storage_backend.c index 07a2e487d2..8824218e12 100644 --- a/src/storage_backend.c +++ b/src/storage_backend.c @@ -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]);