[pve-devel] [PATCH v2 qemu-server 3/5] rename foreach_writable_storage to foreach_storage_used_by_vm
Fabian Grünbichler
f.gruenbichler at proxmox.com
Mon May 15 14:11:58 CEST 2017
Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
PVE/QemuConfig.pm | 2 +-
PVE/QemuServer.pm | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/PVE/QemuConfig.pm b/PVE/QemuConfig.pm
index d76fe5e..f018676 100644
--- a/PVE/QemuConfig.pm
+++ b/PVE/QemuConfig.pm
@@ -112,7 +112,7 @@ sub __snapshot_save_vmstate {
if (!$target) {
my ($shared, $local);
- PVE::QemuServer::foreach_writable_storage($conf, sub {
+ PVE::QemuServer::foreach_storage_used_by_vm($conf, sub {
my ($sid) = @_;
my $scfg = PVE::Storage::storage_config($storecfg, $sid);
my $dst = $scfg->{shared} ? \$shared : \$local;
diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 03957c9..5c04144 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -5792,7 +5792,7 @@ sub restore_tar_archive {
warn $@ if $@;
};
-sub foreach_writable_storage {
+sub foreach_storage_used_by_vm {
my ($conf, $func) = @_;
my $sidhash = {};
--
2.1.4
More information about the pve-devel
mailing list