xm: When dumping core of an errant domain do not unpause after the

dump. This could allow the domain to e.g., access disks after
fail-over.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
This commit is contained in:
Keir Fraser committed 2008-04-04 10:18:45 +01:00
1 parent 739fe1e943
commit b6eb51444c
1 file changed
+6 -6
+6 -6
View File
@@ -1294,13 +1294,13 @@ def xm_dump_core(args):
try:
print "Dumping core of domain: %s ..." % str(dom)
server.xend.domain.dump(dom, filename, live, crash)
finally:
if not live and ds == DOM_STATE_RUNNING:
server.xend.domain.unpause(dom)
if crash:
print "Destroying domain: %s ..." % str(dom)
server.xend.domain.destroy(dom)
if crash:
print "Destroying domain: %s ..." % str(dom)
server.xend.domain.destroy(dom)
finally:
if not live and not crash and ds == DOM_STATE_RUNNING:
server.xend.domain.unpause(dom)
def xm_rename(args):
arg_check(args, "rename", 2)
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.