[pve-devel] [PATCH v4 qemu-server 25/27] sync_disks: log output of storage_migrate

Fabian Ebner f.ebner at proxmox.com
Thu Mar 26 09:09:55 CET 2020


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

diff --git a/PVE/QemuMigrate.pm b/PVE/QemuMigrate.pm
index 5071f35..4fb204d 100644
--- a/PVE/QemuMigrate.pm
+++ b/PVE/QemuMigrate.pm
@@ -539,9 +539,10 @@ sub sync_disks {
 		    'allow_rename' => !$local_volumes->{$volid}->{is_vmstate},
 		};
 
+		my $logfunc = sub { $self->log('info', $_[0]); };
 		my $new_volid = eval {
 		    PVE::Storage::storage_migrate($self->{storecfg}, $volid, $self->{ssh_info},
-						  $targetsid, $storage_migrate_opts);
+						  $targetsid, $storage_migrate_opts, $logfunc);
 		};
 		if (my $err = $@) {
 		    die "storage migration for '$volid' to storage '$targetsid' failed - $err\n";
-- 
2.20.1





More information about the pve-devel mailing list