You are viewing a plain text version of this content. The canonical link for it is here.
Posted to tashi-commits@incubator.apache.org by mr...@apache.org on 2009/05/25 19:26:31 UTC
svn commit: r778476 -
/incubator/tashi/trunk/src/tashi/nodemanager/vmcontrol/qemu.py
Author: mryan3
Date: Mon May 25 19:26:30 2009
New Revision: 778476
URL: http://svn.apache.org/viewvc?rev=778476&view=rev
Log:
Removed some dead code
Modified:
incubator/tashi/trunk/src/tashi/nodemanager/vmcontrol/qemu.py
Modified: incubator/tashi/trunk/src/tashi/nodemanager/vmcontrol/qemu.py
URL: http://svn.apache.org/viewvc/incubator/tashi/trunk/src/tashi/nodemanager/vmcontrol/qemu.py?rev=778476&r1=778475&r2=778476&view=diff
==============================================================================
--- incubator/tashi/trunk/src/tashi/nodemanager/vmcontrol/qemu.py (original)
+++ incubator/tashi/trunk/src/tashi/nodemanager/vmcontrol/qemu.py Mon May 25 19:26:30 2009
@@ -210,12 +210,6 @@
raise Exception, "Uncontrolled vmId %d" % (pid)
return child
- def getControlConsole(self, vmId, port):
- """Spawn a thread that attaches the control console of a particular Qemu to a TCP port -- used for debugging only"""
- child = self.getChildFromPid(vmId)
- threading.Thread(target=controlConsole, args=(child, port)).start()
- return port
-
def consumeAvailable(self, child):
"""Consume characters one-by-one until they stop coming"""
monitorFd = child.monitorFd
@@ -268,10 +262,6 @@
res = self.consumeUntil(child, "(qemu) ", timeout=timeout)
return res
- def genTmpFilename(self):
- """Create a temporary file name for a fifo used to uncompress a suspended VM"""
- return "/tmp/Qemu_%d" % (os.getpid())
-
def loadChildInfo(self, vmId):
child = self.anonClass(pid=vmId)
info = open(self.INFO_DIR + "/%d"%(child.pid), "r")