From: Cole Robinson Date: Fri, 10 Jul 2009 13:05:20 +0000 (-0400) Subject: storage: disk: Use capacity, not allocation, when creating volume. X-Git-Tag: v0.7.0~166 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a500d73ac029a5344aca5680d95757e3044f3df6;p=thirdparty%2Flibvirt.git storage: disk: Use capacity, not allocation, when creating volume. There isn't any way to dictate allocation when creating disk volumes, so capacity is the only relevant value. --- diff --git a/src/storage_backend_disk.c b/src/storage_backend_disk.c index a029d31d0e..e1357528e1 100644 --- a/src/storage_backend_disk.c +++ b/src/storage_backend_disk.c @@ -563,7 +563,7 @@ virStorageBackendDiskCreateVol(virConnectPtr conn, if (virStorageBackendDiskPartBoundries(conn, pool, &startOffset, &endOffset, - vol->allocation) != 0) { + vol->capacity) != 0) { return -1; }