[pve-devel] [RFC qemu-server 12/16] Implement abstract foreach_volume and print_volume

Fabian Ebner f.ebner at proxmox.com
Wed Jan 29 14:30:10 CET 2020


Signed-off-by: Fabian Ebner <f.ebner at proxmox.com>
---
 PVE/QemuConfig.pm | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/PVE/QemuConfig.pm b/PVE/QemuConfig.pm
index 1ba728a..a983e52 100644
--- a/PVE/QemuConfig.pm
+++ b/PVE/QemuConfig.pm
@@ -130,6 +130,18 @@ sub get_replicatable_volumes {
     return $volhash;
 }
 
+sub foreach_volume {
+    my ($class, $conf, $func, @param) = @_;
+
+    PVE::QemuServer::foreach_drive($conf, $func, @param);
+}
+
+sub print_volume {
+    my ($class, $volume) = @_;
+
+    return PVE::QemuServer::print_drive($volume);
+}
+
 sub __snapshot_save_vmstate {
     my ($class, $vmid, $conf, $snapname, $storecfg, $statestorage, $suspend) = @_;
 
-- 
2.20.1





More information about the pve-devel mailing list