From a500d73ac029a5344aca5680d95757e3044f3df6 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Fri, 10 Jul 2009 09:05:20 -0400 Subject: [PATCH] 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. --- src/storage_backend_disk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }