From 44fdfb2af6cbdb50abdb73af23ea92f5cdb0de1a Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Mon, 7 Dec 2020 16:13:04 +0100 Subject: [PATCH] nfs and cifs: implement backup notes helper reuse the one from DirPlugin by directing the call to it, but with the actual $class. This should stay stable, as we provide an ABI and try to always use $class->helpers. Signed-off-by: Thomas Lamprecht --- PVE/Storage/CIFSPlugin.pm | 9 +++++++++ PVE/Storage/NFSPlugin.pm | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/PVE/Storage/CIFSPlugin.pm b/PVE/Storage/CIFSPlugin.pm index 36339db..be06cc7 100644 --- a/PVE/Storage/CIFSPlugin.pm +++ b/PVE/Storage/CIFSPlugin.pm @@ -284,4 +284,13 @@ sub check_connection { return 1; } +sub get_volume_notes { + my $class = shift; + PVE::Storage::DirPlugin::get_volume_notes($class, @_); +} +sub update_volume_notes { + my $class = shift; + PVE::Storage::DirPlugin::update_volume_notes($class, @_); +} + 1; diff --git a/PVE/Storage/NFSPlugin.pm b/PVE/Storage/NFSPlugin.pm index f8d7e68..e8e27c0 100644 --- a/PVE/Storage/NFSPlugin.pm +++ b/PVE/Storage/NFSPlugin.pm @@ -171,4 +171,13 @@ sub check_connection { return 1; } +sub get_volume_notes { + my $class = shift; + PVE::Storage::DirPlugin::get_volume_notes($class, @_); +} +sub update_volume_notes { + my $class = shift; + PVE::Storage::DirPlugin::update_volume_notes($class, @_); +} + 1; -- 2.39.2