]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
storage: disk: Use capacity, not allocation, when creating volume.
authorCole Robinson <crobinso@redhat.com>
Fri, 10 Jul 2009 13:05:20 +0000 (09:05 -0400)
committerCole Robinson <crobinso@redhat.com>
Thu, 16 Jul 2009 16:52:52 +0000 (12:52 -0400)
There isn't any way to dictate allocation when creating disk volumes, so
capacity is the only relevant value.

src/storage_backend_disk.c

index a029d31d0e97bdbab80468d00a6543b4b0b98095..e1357528e15a5fceaf2a32d1f77198471a1e7dc7 100644 (file)
@@ -563,7 +563,7 @@ virStorageBackendDiskCreateVol(virConnectPtr conn,
 
     if (virStorageBackendDiskPartBoundries(conn, pool, &startOffset,
                                            &endOffset,
-                                           vol->allocation) != 0) {
+                                           vol->capacity) != 0) {
        return -1;
     }