qemu-block
[Top][All Lists]
Advanced

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

Re: [PATCH v2 7/7] qemu: Block blockjobs when transient disk option is e


From: Peter Krempa
Subject: Re: [PATCH v2 7/7] qemu: Block blockjobs when transient disk option is enabled
Date: Tue, 8 Sep 2020 15:16:05 +0200
User-agent: Mutt/1.14.6 (2020-07-11)

On Fri, Aug 28, 2020 at 10:08:34 -0400, Masayoshi Mizuma wrote:
> From: Masayoshi Mizuma <m.mizuma@jp.fujitsu.com>
> 
> Block blockjobs when transient disk option is enabled so far.
> 
> Signed-off-by: Masayoshi Mizuma <m.mizuma@jp.fujitsu.com>
> ---
>  src/qemu/qemu_domain.c | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c
> index e28f704dba..98a52e5476 100644
> --- a/src/qemu/qemu_domain.c
> +++ b/src/qemu/qemu_domain.c
> @@ -10678,6 +10678,13 @@ qemuDomainDiskBlockJobIsSupported(virDomainObjPtr vm,
>          return false;
>      }
>  
> +    if (disk->transient) {
> +        virReportError(VIR_ERR_OPERATION_UNSUPPORTED,
> +                       _("block jobs are not supported on transient disk 
> '%s'"),
> +                       disk->dst);
> +        return false;
> +    }

Please move this patch a bit sooner in the series so that all checks are
in place before enabling the feature.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]