aboutsummaryrefslogtreecommitdiffstats
path: root/tools/remus
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-05-04 09:31:13 +0100
committerKeir Fraser <keir.fraser@citrix.com>2010-05-04 09:31:13 +0100
commitaeef67a43b75323b1bdccdf7debfa16abaee1080 (patch)
tree24ce3d2af058f7e4ee58fae18238f2d74b90c385 /tools/remus
parentc6a0974ed9ce5967b767ab36949e7ea357119f74 (diff)
downloadxen-aeef67a43b75323b1bdccdf7debfa16abaee1080.tar.gz
xen-aeef67a43b75323b1bdccdf7debfa16abaee1080.tar.bz2
xen-aeef67a43b75323b1bdccdf7debfa16abaee1080.zip
Remus: remove obsolete code
Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
Diffstat (limited to 'tools/remus')
-rw-r--r--tools/remus/remus18
1 files changed, 0 insertions, 18 deletions
diff --git a/tools/remus/remus b/tools/remus/remus
index d5c8b9ce39..f734e7725e 100644
--- a/tools/remus/remus
+++ b/tools/remus/remus
@@ -22,7 +22,6 @@ class Cfg(object):
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 @@ class Cfg(object):
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 @@ class ReplicatedDisk(BufferedDevice):
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 @@ def run(cfg):
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()