mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 07:05:28 +00:00
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:
parent
bd70595c9d
commit
a500d73ac0
@ -563,7 +563,7 @@ virStorageBackendDiskCreateVol(virConnectPtr conn,
|
||||
|
||||
if (virStorageBackendDiskPartBoundries(conn, pool, &startOffset,
|
||||
&endOffset,
|
||||
vol->allocation) != 0) {
|
||||
vol->capacity) != 0) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user