public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Fabian Ebner <f.ebner@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: Re: [pve-devel] [PATCH storage] clone image: specify base format option with qemu-img
Date: Fri, 30 Apr 2021 08:38:31 +0200	[thread overview]
Message-ID: <ab541555-8149-8289-94d0-fe6132f8b4d3@proxmox.com> (raw)
In-Reply-To: <20210204102606.17447-1-f.ebner@proxmox.com>

Ping

Am 04.02.21 um 11:26 schrieb Fabian Ebner:
> and avoid a warning. It is deprecated to auto-detect the format of the base
> volume. See commit d9f059aa6cfccefaffa3532556e966df4a99ece2 in qemu for more
> information.
> 
> Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
> ---
>   PVE/Storage/GlusterfsPlugin.pm | 2 +-
>   PVE/Storage/Plugin.pm          | 2 +-
>   2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/PVE/Storage/GlusterfsPlugin.pm b/PVE/Storage/GlusterfsPlugin.pm
> index 2dd414d..5ec2f42 100644
> --- a/PVE/Storage/GlusterfsPlugin.pm
> +++ b/PVE/Storage/GlusterfsPlugin.pm
> @@ -228,7 +228,7 @@ sub clone_image {
>       my $volumepath = "gluster://$server/$glustervolume/images/$vmid/$name";
>   
>       my $cmd = ['/usr/bin/qemu-img', 'create', '-b', "../$basevmid/$basename",
> -	       '-f', 'qcow2', $volumepath];
> +	       '-F', $format, '-f', 'qcow2', $volumepath];
>   
>       run_command($cmd, errmsg => "unable to create image");
>   
> diff --git a/PVE/Storage/Plugin.pm b/PVE/Storage/Plugin.pm
> index d2d8184..bd8b345 100644
> --- a/PVE/Storage/Plugin.pm
> +++ b/PVE/Storage/Plugin.pm
> @@ -708,7 +708,7 @@ sub clone_image {
>   	local $CWD = $imagedir;
>   
>   	my $cmd = ['/usr/bin/qemu-img', 'create', '-b', "../$basevmid/$basename",
> -		   '-f', 'qcow2', $path];
> +		   '-F', $format, '-f', 'qcow2', $path];
>   
>   	run_command($cmd);
>       };
> 




  reply	other threads:[~2021-04-30  6:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-04 10:26 Fabian Ebner
2021-04-30  6:38 ` Fabian Ebner [this message]
2021-05-03 11:07 ` [pve-devel] applied: " Thomas Lamprecht

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ab541555-8149-8289-94d0-fe6132f8b4d3@proxmox.com \
    --to=f.ebner@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal