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.
This commit is contained in:
Cole Robinson 2009-07-10 09:05:20 -04:00
parent bd70595c9d
commit a500d73ac0

View File

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