From: Fiona Ebner <f.ebner@proxmox.com>
To: Elias Huhsovitz <e.huhsovitz@proxmox.com>, pve-devel@lists.proxmox.com
Subject: Re: [PATCH qemu-server 1/4] block job: monitor: document that job-complete is not used if source differs from target
Date: Wed, 28 Oct 2026 09:56:16 +0100 [thread overview]
Message-ID: <e749e387-44cd-456a-9814-dd3046a51702@proxmox.com> (raw)
In-Reply-To: <DMC32YNR0SEL.2GA0VUHFYFNHX@proxmox.com>
Am 23.10.26 um 10:44 AM schrieb Elias Huhsovitz:
> Comments inline.
>
> On Thu Oct 22, 2026 at 11:38 AM CEST, Fiona Ebner wrote:
>> Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
>> ---
>> src/PVE/QemuServer/BlockJob.pm | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/src/PVE/QemuServer/BlockJob.pm b/src/PVE/QemuServer/BlockJob.pm
>> index 493dda33..5757c24f 100644
>> --- a/src/PVE/QemuServer/BlockJob.pm
>> +++ b/src/PVE/QemuServer/BlockJob.pm
>> @@ -82,6 +82,7 @@ sub qemu_blockjobs_cancel {
>>
>> # $completion can be either
>> # 'complete': wait until all jobs are ready, job-complete them (default)
>> +# If the source peer is not the same as the destination VM, uses block-job-cancel instead.
>
> The comments reads like, this a special behaviour of the 'complete',
> case. But in this case, isn't the 'complete' & 'cancel' behaviour the
> same?
Yes, it reads like that, because it is. For cancel, this is not a
special case; cancel always does block-job-cancel. I would find it
somewhat confusing to talk about it for cancel if it is the same result.
>
> IMO this is just a property of the function. What about something like:
>
> If the source peer is not the same as the destination VM, no disk
> is switched: 'complete' and 'cancel' both block-job-cancel instead.
> ('skip' and 'auto' are unaffected.)
>
>> # 'cancel': wait until all jobs are ready, block-job-cancel them
>> # 'skip': wait until all jobs are ready, return with block jobs in ready state
>> # 'auto': wait until all jobs disappear, only use for jobs which complete automatically
>
next prev parent reply other threads:[~2026-10-28 8:56 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-22 9:38 [PATCH-SERIES qemu-server 0/4] fix #8209: clone disk: do not ignore failure to query size of target Fiona Ebner
2026-10-22 9:38 ` [PATCH qemu-server 1/4] block job: monitor: document that job-complete is not used if source differs from target Fiona Ebner
2026-10-23 8:44 ` Elias Huhsovitz
2026-10-28 8:56 ` Fiona Ebner [this message]
2026-10-22 9:38 ` [PATCH qemu-server 2/4] fix #8209: clone disk: do not ignore failure to query size of target Fiona Ebner
2026-10-22 13:25 ` Elias Huhsovitz
2026-10-28 9:05 ` Fiona Ebner
2026-10-28 9:08 ` Fiona Ebner
2026-10-22 9:38 ` [PATCH qemu-server 3/4] clone disk: abort early when failing to query size of source disk Fiona Ebner
2026-10-23 8:53 ` Elias Huhsovitz
2026-10-22 9:38 ` [PATCH qemu-server 4/4] clone disk: bump timeout for querying target volume size to 1 minute Fiona Ebner
2026-10-23 9:31 ` Elias Huhsovitz
2026-10-28 9:39 ` Fiona Ebner
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=e749e387-44cd-456a-9814-dd3046a51702@proxmox.com \
--to=f.ebner@proxmox.com \
--cc=e.huhsovitz@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