Re: [libvirt] [PATCH] Don't check volume format for lvm backing store

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Feb 12, 2009 at 02:37:33PM -0500, Cole Robinson wrote:
> With the recently added COW support, we were trying to validate the
> passed logical volume's format, when there won't ever be one pulled from
> the xml (logical volumes don't have any valid format values).
> 
> Just remove this check, and let any validation in this manner be done by
> the actual call to 'lvcreate'.

Oh, I got this the wrong way around - I was thinking that the
VIR_STORAGE_POOL_LOGICAL_LVM2 was the volume type, but its 
actually the pool type. 

> diff --git a/src/storage_backend_logical.c b/src/storage_backend_logical.c
> index 702a191..cbd2765 100644
> --- a/src/storage_backend_logical.c
> +++ b/src/storage_backend_logical.c
> @@ -582,12 +582,6 @@ virStorageBackendLogicalCreateVol(virConnectPtr conn,
>      const char **cmdargv = cmdargvnew;
>  
>      if (vol->backingStore.path) {
> -        if (vol->backingStore.format !=
> -            VIR_STORAGE_POOL_LOGICAL_LVM2) {
> -            virStorageReportError(conn, VIR_ERR_INTERNAL_ERROR, "%s",
> -                                  _("LVM snapshots must be backed by another LVM volume"));
> -            return -1;
> -        }
>          cmdargv = cmdargvsnap;
>      }


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 :|

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]