[pve-devel] [PATCH] fix to prevent uninitialized variable massage.

Wolfgang Link w.link at proxmox.com
Fri Aug 28 11:12:50 CEST 2015


---
 PVE/Storage/ZFSPlugin.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/Storage/ZFSPlugin.pm b/PVE/Storage/ZFSPlugin.pm
index 3878342..52e9090 100644
--- a/PVE/Storage/ZFSPlugin.pm
+++ b/PVE/Storage/ZFSPlugin.pm
@@ -275,7 +275,7 @@ sub alloc_image {
 
     my $volname = $name;
 
-    $volname = $class->zfs_find_free_diskname($storeid, $scfg, $vmid) if !$volname;
+    $volname = $class->zfs_find_free_diskname($storeid, $scfg, $vmid, $fmt) if !$volname;
     
     $class->zfs_create_zvol($scfg, $volname, $size);
  
-- 
2.1.4





More information about the pve-devel mailing list