bitkeeper revision 1.1766 (42c17071SPDLo7qPlXAiQzrKjMu6Mw)

Add xenbus driver.
XendDomainInfo.py:
  Connect/Disconnect domains to/from store.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au> (authored)
Signed-off-by: Mike Wray <mike.wray@hp.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
This commit is contained in:
cl349@firebug.cl.cam.ac.uk committed 2005-06-28 15:44:49 +00:00
1 parent 92a9aed70c
commit a575a4a3a8
9 files changed
+1749 -9

No files matched your search

+9 -9
View File
@@ -565,10 +565,10 @@ class XendDomainInfo:
self.create_channel()
self.image.createImage()
self.exportToDB()
#if self.store_channel:
# self.db.introduceDomain(self.id,
# self.store_mfn,
# self.store_channel)
if self.store_channel:
self.db.introduceDomain(self.id,
self.store_mfn,
self.store_channel)
def delete(self):
"""Delete the vm's db.
@@ -615,11 +615,11 @@ class XendDomainInfo:
self.store_channel = None
except:
pass
#try:
# self.db.releaseDomain(self.id)
#except Exception, ex:
# log.warning("error in domain release on xenstore: %s", ex)
# pass
try:
self.db.releaseDomain(self.id)
except Exception, ex:
log.warning("error in domain release on xenstore: %s", ex)
pass
if self.image:
try:
self.image.destroy()
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.