]> git.proxmox.com Git - pve-storage.git/commitdiff
btrfs: fix calling alloc_image from DirPlugin
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 6 Sep 2021 06:25:45 +0000 (08:25 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 6 Sep 2021 06:25:58 +0000 (08:25 +0200)
similar to commit 279d9de5108f6fc6f2d31f77f1b41d6dc7a67cb9

This calling style is pretty dangerous in general for such plugin
systems...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/Storage/BTRFSPlugin.pm

index 411cab9530ead752e792c35eec85eea409b7288b..fe4208289661e81f0fb3a9cf296753f508d80afd 100644 (file)
@@ -309,7 +309,7 @@ sub alloc_image {
     my ($class, $storeid, $scfg, $vmid, $fmt, $name, $size) = @_;
 
     if ($fmt ne 'raw' && $fmt ne 'subvol') {
-       return PVE::Storage::DirPlugin::alloc_image(@_);
+       return $class->SUPER::alloc_image($storeid, $scfg, $vmid, $fmt, $name, $size)
     }
 
     # From Plugin.pm: