From 8b54ef4147cff48c4458d745be720d3e3e30fd1c Mon Sep 17 00:00:00 2001 From: Ryota Ozaki Date: Wed, 5 Aug 2009 14:35:17 +0200 Subject: [PATCH] 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 --- src/storage_backend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]);