From e6ace37bc91b18f898057710955d63066c0c4b5a Mon Sep 17 00:00:00 2001 From: jjhua Date: Tue, 4 Sep 2012 02:37:01 +0000 Subject: [PATCH] updatenode performance enhancement: remove the code to tar postscripts. This method is not acceptable. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13707 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/updatenode.pm | 36 +++++++++++----------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/updatenode.pm b/xCAT-server/lib/xcat/plugins/updatenode.pm index 026a7b90e..29f32d531 100644 --- a/xCAT-server/lib/xcat/plugins/updatenode.pm +++ b/xCAT-server/lib/xcat/plugins/updatenode.pm @@ -879,14 +879,14 @@ sub updatenode xCAT::MsgUtils->message("E", $rsp, $callback); } - $cmd="cd $postscripts;tar -czf $postscripts.tgz ."; #print "cmd:$cmd\n"; - xCAT::Utils->runcmd($cmd, 0); - $rsp = {}; - if ($::RUNCMD_RC != 0) - { - $rsp->{data}->[0] = "$cmd failed.\n"; - xCAT::MsgUtils->message("E", $rsp, $callback); - } + #$cmd="cd $postscripts;tar -czf $postscripts.tgz ."; #print "cmd:$cmd\n"; + #xCAT::Utils->runcmd($cmd, 0); + #$rsp = {}; + #if ($::RUNCMD_RC != 0) + #{ + # $rsp->{data}->[0] = "$cmd failed.\n"; + # xCAT::MsgUtils->message("E", $rsp, $callback); + #} } @@ -1474,18 +1474,18 @@ sub updatenode } } # finish clean up the tarred postscript file - if (-e "$postscripts.tgz") { + #if (-e "$postscripts.tgz") { - my $cmd="rm $postscripts.tgz"; #print "cmd:$cmd\n"; - xCAT::Utils->runcmd($cmd, 0); - my $rsp = {}; - if ($::RUNCMD_RC != 0) - { - $rsp->{data}->[0] = "$cmd failed.\n"; - xCAT::MsgUtils->message("E", $rsp, $callback); - } + # my $cmd="rm $postscripts.tgz"; #print "cmd:$cmd\n"; + # xCAT::Utils->runcmd($cmd, 0); + # my $rsp = {}; + # if ($::RUNCMD_RC != 0) + # { + # $rsp->{data}->[0] = "$cmd failed.\n"; + # xCAT::MsgUtils->message("E", $rsp, $callback); + # } - } + #} return 0; } #