all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: "Elias Huhsovitz" <e.huhsovitz@proxmox.com>
To: "Jakob Klocker" <j.klocker@proxmox.com>, <pve-devel@lists.proxmox.com>
Subject: Re: [PATCH pve-storage v3 1/2] qemu-img: drop redundant timeout argument at resize call
Date: Thu, 13 Aug 2026 11:04:29 +0200	[thread overview]
Message-ID: <DKNP1U8MRJX4.7C6MWGDK0LI8@proxmox.com> (raw)
In-Reply-To: <20260811073740.100398-2-j.klocker@proxmox.com>

Last patch (v2) I also didn't consider that thrid-party plugins would
call qemu_img_resize. Therefore keeping the $timeout parameter is
definitely the correct choice.

Reviewed-by: Elias Huhsovitz <e.huhsovitz@proxmox.com>
Tested-by: Elias Huhsovitz <e.huhsovitz@proxmox.com>

On Tue Aug 11, 2026 at 9:37 AM CEST, Jakob Klocker wrote:
> `qemu_img_resize` already defaults to a timeout of 10 seconds when none
> is passed, so passing 10 explicitly is redundant.
>
> Signed-off-by: Jakob Klocker <j.klocker@proxmox.com>
> ---
>  src/PVE/Storage/LVMPlugin.pm | 2 +-
>  src/PVE/Storage/Plugin.pm    | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/PVE/Storage/LVMPlugin.pm b/src/PVE/Storage/LVMPlugin.pm
> index b8646c2..768ff95 100644
> --- a/src/PVE/Storage/LVMPlugin.pm
> +++ b/src/PVE/Storage/LVMPlugin.pm
> @@ -1081,7 +1081,7 @@ sub volume_resize {
>  
>      if (!$running && $format eq 'qcow2') {
>          my $preallocation = PVE::Storage::Plugin::preallocation_cmd_opt($scfg, $format);
> -        PVE::Storage::Common::qemu_img_resize($path, $format, $size, $preallocation, 10);
> +        PVE::Storage::Common::qemu_img_resize($path, $format, $size, $preallocation);
>      }
>  
>      return 1;
> diff --git a/src/PVE/Storage/Plugin.pm b/src/PVE/Storage/Plugin.pm
> index 4f69f9b..082355d 100644
> --- a/src/PVE/Storage/Plugin.pm
> +++ b/src/PVE/Storage/Plugin.pm
> @@ -1373,7 +1373,7 @@ sub volume_resize {
>      my $format = ($class->parse_volname($volname))[6];
>  
>      my $preallocation = preallocation_cmd_opt($scfg, $format);
> -    PVE::Storage::Common::qemu_img_resize($path, $format, $size, $preallocation, 10);
> +    PVE::Storage::Common::qemu_img_resize($path, $format, $size, $preallocation);
>  
>      return undef;
>  }





  reply	other threads:[~2026-08-13  9:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-11  7:37 [PATCH storage v3 0/2] fix #7598: qemu-img: increase timeout for image resize Jakob Klocker
2026-08-11  7:37 ` [PATCH pve-storage v3 1/2] qemu-img: drop redundant timeout argument at resize call Jakob Klocker
2026-08-13  9:04   ` Elias Huhsovitz [this message]
2026-08-11  7:37 ` [PATCH pve-storage v3 2/2] fix #7598: qemu-img: increase timeout for image resizing in worker context Jakob Klocker
2026-08-13  9:06   ` Elias Huhsovitz

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=DKNP1U8MRJX4.7C6MWGDK0LI8@proxmox.com \
    --to=e.huhsovitz@proxmox.com \
    --cc=j.klocker@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal