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 <[email protected]>
---
 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



_______________________________________________
pve-devel mailing list
[email protected]
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to