]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Add an allocation unit when calling qemu-img
authorRyota Ozaki <ozaki.ryota@gmail.com>
Wed, 5 Aug 2009 12:35:17 +0000 (14:35 +0200)
committerDaniel Veillard <veillard@redhat.com>
Wed, 5 Aug 2009 12:35:17 +0000 (14:35 +0200)
* src/storage_backend.c: as the absence of units can be interpreted
  in diverging ways depending on the version

src/storage_backend.c

index 07a2e487d260b77a01ab29488efebe2aea723e0a..8824218e12099aa46db37b9565512f4d2082feb8 100644 (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]);