[pve-devel] [PATCH guest-common 01/12] abstract config: make get_backup_volumes() method more flexible

Fiona Ebner f.ebner at proxmox.com
Tue Mar 4 11:44:02 CET 2025


Add the VM ID to the parameters for the get_backup_volumes() method.
Like this, implementations can distinguish between owned and non-owned
volumes.

Signed-off-by: Fiona Ebner <f.ebner at proxmox.com>
---
 src/PVE/AbstractConfig.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PVE/AbstractConfig.pm b/src/PVE/AbstractConfig.pm
index 3d4fcbb..c307b71 100644
--- a/src/PVE/AbstractConfig.pm
+++ b/src/PVE/AbstractConfig.pm
@@ -555,7 +555,7 @@ sub get_replicatable_volumes {
 #   },
 # ]
 sub get_backup_volumes {
-    my ($class, $conf) = @_;
+    my ($class, $conf, $vmid) = @_;
 
     die "implement me - abstract method\n";
 }
-- 
2.39.5





More information about the pve-devel mailing list