From 279d9de5108f6fc6f2d31f77f1b41d6dc7a67cb9 Mon Sep 17 00:00:00 2001 From: Hannes Laimer Date: Fri, 30 Jul 2021 13:04:55 +0200 Subject: [PATCH] fix #3555: BTRFS: call DirPlugin's free_image correctly The method is only derived in the DirPlugin module from the base Plugin, so we do not have it available there through a static module method call using ::, but only when using a class dereference. Other fix options would have been: PVE::Storage::Plugin::free_image(@_); or: $class->SUPER::free_image($storeid, ...); Signed-off-by: Hannes Laimer [ Thomas: add some background to the commit message ] 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 4596b30..411cab9 100644 --- a/PVE/Storage/BTRFSPlugin.pm +++ b/PVE/Storage/BTRFSPlugin.pm @@ -410,7 +410,7 @@ sub free_image { $class->parse_volname($volname); if ($format ne 'subvol' && $format ne 'raw') { - return PVE::Storage::DirPlugin::free_image(@_); + return PVE::Storage::DirPlugin->free_image($storeid, $scfg, $volname, $isBase, $_format); } my $path = $class->filesystem_path($scfg, $volname); -- 2.39.2