]> git.proxmox.com Git - pve-storage.git/commitdiff
nfs and cifs: implement backup notes helper
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 7 Dec 2020 15:13:04 +0000 (16:13 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 7 Dec 2020 15:13:09 +0000 (16:13 +0100)
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 <t.lamprecht@proxmox.com>
PVE/Storage/CIFSPlugin.pm
PVE/Storage/NFSPlugin.pm

index 36339dbe5ba8ac0e31d14c1b3260235974e50e20..be06cc761e4e7244358ce72379ef50d7e2a93edd 100644 (file)
@@ -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;
index f8d7e68eeba9436b6e6aebf5123d3d9b6cd84f02..e8e27c090ff4992d3b7253e0135ea202efedcd4f 100644 (file)
@@ -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;