]> git.proxmox.com Git - pve-storage.git/commit
btrfs: fix calling parent create_base method in fall-back
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 19 Nov 2023 19:05:50 +0000 (20:05 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 19 Nov 2023 19:11:36 +0000 (20:11 +0100)
commit5840bd18a8e4d071d5594d4665631c8037eb88ea
tree2c2f52aa62700498bec1af7044e7cf2a8b64e691
parent3cd71f42c06511804403b2a8b320808264ed8552
btrfs: fix calling parent create_base method in fall-back

If we want to forward to the create_base of the directory plugin while
making that use our $class for the operations that call might do, we
cannot use the -> notation (which would resolve the next actual
implementation) but rather pass the class directly.
But, DirPlugin reuses the create_base method from the base Plugin
method, so we also need to call that, because on direct call notation
the inheritance fallback to super methods isn't available.

Reported in the forum:
https://forum.proxmox.com/threads/95684/post-606535

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