|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] Better error message for 'xm sysrq' on in
# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1183970315 -3600
# Node ID 259bb15b2d1e5616e5e09ce1ce8ff4f122779e4b
# Parent 50c18666d6607a58e128ad1d3758a98cb9881de3
Better error message for 'xm sysrq' on inactive domain.
Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
---
tools/python/xen/xend/XendDomainInfo.py | 3 +++
1 files changed, 3 insertions(+)
diff -r 50c18666d660 -r 259bb15b2d1e tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py Sat Jul 07 11:21:34 2007 +0100
+++ b/tools/python/xen/xend/XendDomainInfo.py Mon Jul 09 09:38:35 2007 +0100
@@ -488,6 +488,9 @@ class XendDomainInfo:
def send_sysrq(self, key):
""" Send a Sysrq equivalent key via xenstored."""
+ if self._stateGet() not in (DOM_STATE_RUNNING, DOM_STATE_PAUSED):
+ raise XendError("Domain '%s' is not started" %
self.info['name_label'])
+
asserts.isCharConvertible(key)
self.storeDom("control/sysrq", '%c' % key)
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] Better error message for 'xm sysrq' on inactive domain.,
Xen patchbot-unstable <=
|
|
|
|
|