5
0
mirror of git://git.proxmox.com/git/pve-storage.git synced 2025-01-10 01:18:05 +03:00

Add logfung in storage_migrate

The log function is used by storage replication to redirect the output in the correct log.
This commit is contained in:
Wolfgang Link 2017-10-10 09:43:52 +02:00 committed by Wolfgang Bumiller
parent 6b4acdb460
commit 8fe00d9944

View File

@ -536,7 +536,7 @@ sub abs_filesystem_path {
}
sub storage_migrate {
my ($cfg, $volid, $target_sshinfo, $target_storeid, $target_volname, $base_snapshot, $snapshot, $ratelimit_bps, $insecure, $with_snapshots) = @_;
my ($cfg, $volid, $target_sshinfo, $target_storeid, $target_volname, $base_snapshot, $snapshot, $ratelimit_bps, $insecure, $with_snapshots, $logfunc) = @_;
my ($storeid, $volname) = parse_volume_id($volid);
$target_volname = $volname if !$target_volname;
@ -619,7 +619,7 @@ sub storage_migrate {
die "import failed: exit code ".($?>>8)."\n";
}
} else {
run_command([$send, @cstream, $recv]);
run_command([$send, @cstream, $recv], logfunc => $logfunc);
}
};
my $err = $@;