btrfs: fix calling alloc_image from DirPlugin

similar to commit 279d9de510

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

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht
2021-09-06 08:25:45 +02:00
parent 22b68016f7
commit e2f8e86c83

View 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: