From e2f8e86c832589eb000756c779c8b8534f85d8c9 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Mon, 6 Sep 2021 08:25:45 +0200 Subject: [PATCH] btrfs: fix calling alloc_image from DirPlugin similar to commit 279d9de5108f6fc6f2d31f77f1b41d6dc7a67cb9 This calling style is pretty dangerous in general for such plugin systems... Signed-off-by: Thomas Lamprecht --- PVE/Storage/BTRFSPlugin.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/Storage/BTRFSPlugin.pm b/PVE/Storage/BTRFSPlugin.pm index 411cab9..fe42082 100644 --- a/PVE/Storage/BTRFSPlugin.pm +++ b/PVE/Storage/BTRFSPlugin.pm @@ -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: