Re: [PATCH] qemu: Add missing VIR_DOMAIN_BLOCK_COMMIT_DELETE flags

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

 



On 08/27/2013 01:53 AM, Alex Jia wrote:
> The flag "VIR_DOMAIN_BLOCK_COMMIT_DELETE" is missed by qemuDomainBlockCommit(),
> and then will hit error "unsupported flags (0x2) in function
> qemuDomainBlockCommit" if users run 'virsh blockcommit' with '--delete' option.
> 
> RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1001475
> 
> Signed-off-by: Alex Jia <ajia@xxxxxxxxxx>
> ---
>  src/qemu/qemu_driver.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
> index ed29373..8863124 100644
> --- a/src/qemu/qemu_driver.c
> +++ b/src/qemu/qemu_driver.c
> @@ -14444,7 +14444,8 @@ qemuDomainBlockCommit(virDomainPtr dom, const char *path, const char *base,
>      const char *base_canon = NULL;
>      bool clean_access = false;
>  
> -    virCheckFlags(VIR_DOMAIN_BLOCK_COMMIT_SHALLOW, -1);
> +    virCheckFlags(VIR_DOMAIN_BLOCK_COMMIT_SHALLOW |
> +                  VIR_DOMAIN_BLOCK_COMMIT_DELETE, -1);

NACK.  You can't add the the flag to the list of supported flags unless
you also add the support for that flag.

This is a case of known future expansion (just as block-resize --shrink)
- the API was planned for full capability, but no one has had time yet
to implement all of the API for all of the hypervisor drivers.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

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