rename foreach_writable_storage to foreach_storage_used_by_vm

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler 2017-05-15 14:11:58 +02:00 committed by Wolfgang Bumiller
parent 2eeb0c9321
commit 65a5ce88e6
2 changed files with 2 additions and 2 deletions

View File

@ -125,7 +125,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;

View File

@ -5819,7 +5819,7 @@ sub restore_tar_archive {
warn $@ if $@;
};
sub foreach_writable_storage {
sub foreach_storage_used_by_vm {
my ($conf, $func) = @_;
my $sidhash = {};