[pve-devel] [PATCH storage] plugin: import/export formats: fix regression to unbreak import/export of 'images' content
Fiona Ebner
f.ebner at proxmox.com
Thu Nov 20 13:12:48 CET 2025
In particular, this affects offline migration of guest volumes.
Reported in the community forum:
https://forum.proxmox.com/threads/176352/
Fixes: 0ba0739 ("plugin: allow volume import of iso, snippets, vztmpl and import")
Signed-off-by: Fiona Ebner <f.ebner at proxmox.com>
---
src/PVE/Storage/Plugin.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/PVE/Storage/Plugin.pm b/src/PVE/Storage/Plugin.pm
index 31a79e9..6f2e434 100644
--- a/src/PVE/Storage/Plugin.pm
+++ b/src/PVE/Storage/Plugin.pm
@@ -2164,7 +2164,7 @@ sub volume_export_formats {
return ();
}
return ('tar+size') if $format eq 'subvol';
- return ('raw+size') if $vtype =~ /^(iso|snippets|vztmpl|import)$/;
+ return ('raw+size') if $vtype =~ /^(images|iso|snippets|vztmpl|import)$/;
}
return ();
}
@@ -2277,7 +2277,7 @@ sub volume_import_formats {
return ();
}
return ('tar+size') if $format eq 'subvol';
- return ('raw+size') if $vtype =~ /^(iso|snippets|vztmpl|import)$/;
+ return ('raw+size') if $vtype =~ /^(images|iso|snippets|vztmpl|import)$/;
}
return ();
}
--
2.47.3
More information about the pve-devel
mailing list