[libvirt] [PATCH 4/4] storage: disk: Use capacity, not allocation, when creating volume.

Daniel P. Berrange berrange at redhat.com
Mon Jul 13 09:18:59 UTC 2009


On Fri, Jul 10, 2009 at 03:32:23PM -0400, Cole Robinson wrote:
> 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 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/src/storage_backend_disk.c b/src/storage_backend_disk.c
> index e50825b..ae2acae 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;
>      }
>

ACK


Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|




More information about the libvir-list mailing list