all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [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

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 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