Fixed the target disk address to be the same as the source disk address in cloning.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16916 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
phamt 2013-07-09 12:30:20 +00:00
parent bad07970cf
commit f2d4b07d2b

View File

@ -1240,9 +1240,9 @@ sub changeVM {
my $sourceId = $propVals->{'userid'};
# Assume flashcopy is supported (via SMAPI)
xCAT::zvmUtils->printLn( $callback, "$tgtNode: Copying $sourceId disk ($srcAddr) to $tgtUserId disk ($tgtAddr) using FLASHCOPY" );
xCAT::zvmUtils->printLn( $callback, "$tgtNode: Copying $sourceId disk ($srcAddr) to $tgtUserId disk ($srcAddr) using FLASHCOPY" );
if (xCAT::zvmUtils->smapi4xcat($::SUDOER, $hcp)) {
$out = xCAT::zvmCPUtils->smapiFlashCopy($::SUDOER, $hcp, $sourceId, $srcAddr, $tgtUserId, $tgtAddr);
$out = xCAT::zvmCPUtils->smapiFlashCopy($::SUDOER, $hcp, $sourceId, $srcAddr, $tgtUserId, $srcAddr);
xCAT::zvmUtils->printLn( $callback, "$tgtNode: $out" );
# Exit if flashcopy completed successfully