From: Masaki Kanno Subject: [PATCH] Fix xm dump-core command for inactive managed domains Date: Wed, 11 Jul 2007 14:18:08 +0900 Message-ID: <69C7C37ADE2EA9kanno.masaki@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-HOZJo9TNe6wH8t1qB4f28" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --Boundary-HOZJo9TNe6wH8t1qB4f28 Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit Content-Description: Mail message body Hi, When I tried xm dump-core command to a inactive managed domain, I saw the following error messages. The 1st error message was solved by changeset 15519. But the 2nd error message is not yet solved. # xm list vm1 Name ID Mem VCPUs State Time(s) vm1 256 2 0.0 # xm dump-core vm1 Error: int() argument must be a string or a number Usage: xm dump-core [-L|--live] [-C|--crash] [Filename] Dump core for a specific domain. -L, --live Dump core without pausing the domain -C, --crash Crash domain after dumping core # xm dump-core --live vm1 Dumping core of domain: vm1 ... Error: int argument required Usage: xm dump-core [-L|--live] [-C|--crash] [Filename] Dump core for a specific domain. -L, --live Dump core without pausing the domain -C, --crash Crash domain after dumping core This patch fixes the 2nd error message as follows. # xm dump-core --live vm1 Dumping core of domain: vm1 ... Error: Domain 'vm1' is not started Usage: xm dump-core [-L|--live] [-C|--crash] [Filename] Dump core for a specific domain. -L, --live Dump core without pausing the domain -C, --crash Crash domain after dumping core Signed-off-by: Masaki Kanno Best regards, Kan --Boundary-HOZJo9TNe6wH8t1qB4f28 Content-Type: application/octet-stream; name="xm_dump_core.patch" Content-Disposition: attachment; filename="xm_dump_core.patch" Content-Transfer-Encoding: base64 ZGlmZiAtciAxZjM0OGU3MGE1YWYgdG9vbHMvcHl0aG9uL3hlbi94ZW5kL1hlbmREb21haW4u cHkKLS0tIGEvdG9vbHMvcHl0aG9uL3hlbi94ZW5kL1hlbmREb21haW4ucHkJVHVlIEp1bCAx MCAxMToxMDozOCAyMDA3ICswMTAwCisrKyBiL3Rvb2xzL3B5dGhvbi94ZW4veGVuZC9YZW5k RG9tYWluLnB5CVdlZCBKdWwgMTEgMDk6MDY6MDMgMjAwNyArMDkwMApAQCAtMTE2NCw2ICsx MTY0LDEwIEBAIGNsYXNzIFhlbmREb21haW46CiAKICAgICAgICAgaWYgZG9taW5mby5nZXRE b21pZCgpID09IERPTTBfSUQ6CiAgICAgICAgICAgICByYWlzZSBYZW5kRXJyb3IoIkNhbm5v dCBkdW1wIGNvcmUgZm9yIHByaXZpbGVnZWQgZG9tYWluICVzIiAlIGRvbWlkKQorICAgICAg ICBpZiBkb21pbmZvLl9zdGF0ZUdldCgpIG5vdCBpbiAoRE9NX1NUQVRFX1BBVVNFRCwgRE9N X1NUQVRFX1JVTk5JTkcpOgorICAgICAgICAgICAgcmFpc2UgVk1CYWRTdGF0ZSgiRG9tYWlu ICclcycgaXMgbm90IHN0YXJ0ZWQiICUgZG9taWQsCisgICAgICAgICAgICAgICAgICAgICAg ICAgICAgIFBPV0VSX1NUQVRFX05BTUVTW0RPTV9TVEFURV9QQVVTRURdLAorICAgICAgICAg ICAgICAgICAgICAgICAgICAgICBQT1dFUl9TVEFURV9OQU1FU1tkb21pbmZvLl9zdGF0ZUdl dCgpXSkKIAogICAgICAgICB0cnk6CiAgICAgICAgICAgICBsb2cuaW5mbygiRG9tYWluIGNv cmUgZHVtcCByZXF1ZXN0ZWQgZm9yIGRvbWFpbiAlcyAoJWQpICIK --Boundary-HOZJo9TNe6wH8t1qB4f28 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --Boundary-HOZJo9TNe6wH8t1qB4f28--