]> git.proxmox.com Git - pve-storage.git/commit
btrfs: call free_image correctly
authorFabian Ebner <f.ebner@proxmox.com>
Mon, 20 Sep 2021 10:23:02 +0000 (12:23 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 22 Sep 2021 06:52:53 +0000 (08:52 +0200)
commitdcd8f3a3dd91d86c7cc446d2cab8030be5ff41da
tree7af087ed17477b61fbdb1aa138a29b26ec78c2dd
parente1667a225310d96ae9ce813d53ec9b04eebe77e6
btrfs: call free_image correctly

Currently, 'PVE::Storage::DirPlugin' is implicitly passed along as
$class, which means that if the base class's free_image calls another
method (e.g.  filesystem_path) then the DirPlugin's method will be
used, rather than the one from BTRFSPlugin. Change it so that $class
itself is passed along.

See also commit 279d9de5108f6fc6f2d31f77f1b41d6dc7a67cb9 for context,
where the approach in this patch was suggested.

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