WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] Fix error message of xm pause/unpause command

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Fix error message of xm pause/unpause command
From: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
Date: Sun, 09 Jul 2006 18:27:13 +0900
Delivery-date: Sun, 09 Jul 2006 02:27:54 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

When I tested the xm pause/unpause command, I found poor error messages.
The following is the error messages.

# xm list
Name                              ID Mem(MiB) VCPUs State  Time(s)
Domain-0                           0      492     1 r-----   394.6
vm1                                1      512     1 r-----     3.0
# xm pause 0
Error: (22, 'Invalid argument')
# xm pause vm2
Error: <Fault 3: 'vm2'>
# xm unpause 0
Error: (22, 'Invalid argument')
# xm unpause vm2
Error: <Fault 3: 'vm2'>


This patch fixes error messages as follows.

[root@tiger111 xen-ia64-unstable.hg.060707]# xm list
Name                              ID Mem(MiB) VCPUs State  Time(s)
Domain-0                           0      492     1 r-----  1197.4
vm1                                1      512     1 r-----   805.7
# xm pause 0
Error: Cannot pause privileged domain 0
# xm pause vm2
Error: the domain 'vm2' does not exist.
# xm unpause 0
Error: Cannot unpause privileged domain 0
# xm unpause vm2
Error: the domain 'vm2' does not exist.


Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>

Best regards,
 Kan

Attachment: pause_unpause.patch
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Fix error message of xm pause/unpause command, Masaki Kanno <=