mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-07-09 10:59:57 +00:00
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:
parent
2eeb0c9321
commit
65a5ce88e6
@ -125,7 +125,7 @@ sub __snapshot_save_vmstate {
|
|||||||
|
|
||||||
if (!$target) {
|
if (!$target) {
|
||||||
my ($shared, $local);
|
my ($shared, $local);
|
||||||
PVE::QemuServer::foreach_writable_storage($conf, sub {
|
PVE::QemuServer::foreach_storage_used_by_vm($conf, sub {
|
||||||
my ($sid) = @_;
|
my ($sid) = @_;
|
||||||
my $scfg = PVE::Storage::storage_config($storecfg, $sid);
|
my $scfg = PVE::Storage::storage_config($storecfg, $sid);
|
||||||
my $dst = $scfg->{shared} ? \$shared : \$local;
|
my $dst = $scfg->{shared} ? \$shared : \$local;
|
||||||
|
@ -5819,7 +5819,7 @@ sub restore_tar_archive {
|
|||||||
warn $@ if $@;
|
warn $@ if $@;
|
||||||
};
|
};
|
||||||
|
|
||||||
sub foreach_writable_storage {
|
sub foreach_storage_used_by_vm {
|
||||||
my ($conf, $func) = @_;
|
my ($conf, $func) = @_;
|
||||||
|
|
||||||
my $sidhash = {};
|
my $sidhash = {};
|
||||||
|
Loading…
Reference in New Issue
Block a user