* [PATCH qemu-server] disk clone: warn when fallback is used instead of requested format
@ 2026-06-18 12:50 Maximiliano Sandoval
2026-06-18 14:55 ` Shannon Sterz
0 siblings, 1 reply; 2+ messages in thread
From: Maximiliano Sandoval @ 2026-06-18 12:50 UTC (permalink / raw)
To: pve-devel
We already print the same warning when importing. See f6039cedf for more
details.
Suggested-by: Shannon Sterz <s.sterz@proxmox.com>
Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
---
Tested:
On a LVM storage with savc enabled:
$ qm disk move 100 scsi0 $storage --format vmdk
which prints:
format 'vmdk' is not supported by the target storage - using 'qcow2' instead
src/PVE/QemuServer.pm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/PVE/QemuServer.pm b/src/PVE/QemuServer.pm
index 55e9f520..80d91a77 100644
--- a/src/PVE/QemuServer.pm
+++ b/src/PVE/QemuServer.pm
@@ -7936,6 +7936,8 @@ sub clone_disk {
my $storeid = $storage || $src_storeid;
my $dst_format = resolve_dst_disk_format($storecfg, $storeid, $drive->{file}, $format);
+ warn "format '$format' is not supported by the target storage - using '$dst_format' instead\n"
+ if $format && $format ne $dst_format;
my $name = undef;
my $size = undef;
--
2.47.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH qemu-server] disk clone: warn when fallback is used instead of requested format
2026-06-18 12:50 [PATCH qemu-server] disk clone: warn when fallback is used instead of requested format Maximiliano Sandoval
@ 2026-06-18 14:55 ` Shannon Sterz
0 siblings, 0 replies; 2+ messages in thread
From: Shannon Sterz @ 2026-06-18 14:55 UTC (permalink / raw)
To: Maximiliano Sandoval, pve-devel
On Thu Jun 18, 2026 at 2:50 PM CEST, Maximiliano Sandoval wrote:
> We already print the same warning when importing. See f6039cedf for more
> details.
>
> Suggested-by: Shannon Sterz <s.sterz@proxmox.com>
> Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
> ---
>
> Tested:
> On a LVM storage with savc enabled:
>
> $ qm disk move 100 scsi0 $storage --format vmdk
>
> which prints:
>
> format 'vmdk' is not supported by the target storage - using 'qcow2' instead
>
> src/PVE/QemuServer.pm | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/src/PVE/QemuServer.pm b/src/PVE/QemuServer.pm
> index 55e9f520..80d91a77 100644
> --- a/src/PVE/QemuServer.pm
> +++ b/src/PVE/QemuServer.pm
> @@ -7936,6 +7936,8 @@ sub clone_disk {
> my $storeid = $storage || $src_storeid;
>
> my $dst_format = resolve_dst_disk_format($storecfg, $storeid, $drive->{file}, $format);
> + warn "format '$format' is not supported by the target storage - using '$dst_format' instead\n"
> + if $format && $format ne $dst_format;
>
> my $name = undef;
> my $size = undef;
work as advertised, so consider this:
Tested-by: Shannon Sterz <s.sterz@proxmox.com>
note that we should probably still align the ui here though and only
allow formats supported by the storage. however, that should not block
this patch.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-06-18 14:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-18 12:50 [PATCH qemu-server] disk clone: warn when fallback is used instead of requested format Maximiliano Sandoval
2026-06-18 14:55 ` Shannon Sterz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox