From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brendan Cully Subject: [PATCH 2 of 7] Remus: remove obsolete code Date: Mon, 03 May 2010 11:53:49 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7451629117087213271==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============7451629117087213271== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Signed-off-by: Brendan Cully --===============7451629117087213271== Content-Type: text/x-patch; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=xen-4.0-2.patch # HG changeset patch # User Brendan Cully # Date 1272694699 25200 # Node ID f0786e8c7fd7b56f0c5712649fe52870d84488de # Parent c0ef3e29c328f52cc9fe1896d3056b42af4ea115 Remus: remove obsolete code Signed-off-by: Brendan Cully diff --git a/tools/remus/remus b/tools/remus/remus --- a/tools/remus/remus +++ b/tools/remus/remus @@ -22,7 +22,6 @@ self.port = XendOptions.instance().get_xend_relocation_port() self.interval = 200 self.netbuffer = True - self.nobackup = False self.timer = False parser = optparse.OptionParser() @@ -36,10 +35,6 @@ help='run without net buffering (benchmark option)') parser.add_option('', '--timer', dest='timer', action='store_true', help='force pause at checkpoint interval (experimental)') - parser.add_option('', '--no-backup', dest='nobackup', - action='store_true', - help='prevent backup from starting up (benchmark ' - 'option)') self.parser = parser def usage(self): @@ -106,20 +101,12 @@ def __del__(self): self.uninstall() - def setup(self): - #self.ctlfd.write('buffer') - #self.ctlfd.flush() - self.installed = True - def uninstall(self): if self.ctlfd: self.ctlfd.close() self.ctlfd = None def postsuspend(self): - if not self.installed: - self.setup() - os.write(self.ctlfd.fileno(), 'flush') def commit(self): @@ -340,11 +327,6 @@ for buf in bufs: buf.uninstall() - if cfg.nobackup: - # lame attempt to kill backup if protection is stopped deliberately. - # It would be much better to move this into the heartbeat "protocol". - print util.runcmd(['sudo', '-u', os.getlogin(), 'ssh', cfg.host, 'sudo', 'xm', 'destroy', dom.name]) - sys.exit(rc) cfg = Cfg() --===============7451629117087213271== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============7451629117087213271==--