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] Improve error message about xm pause/unpase command

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Improve error message about xm pause/unpase command
From: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
Date: Thu, 16 Nov 2006 13:36:51 +0900
Delivery-date: Wed, 15 Nov 2006 20:37:28 -0800
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,

This patch improves error messages about xm pause/unpause command.

Without this patch you see:
 # xm pause Domain-0
 Error: Domain unable to be paused: (22, 'Invalid argument')
 Usage: xm pause <Domain>
 
 Pause execution of a domain.
 # xm unpause Domain-0
 Error: Domain unable to be unpaused: (22, 'Invalid argument')
 Usage: xm unpause <Domain>
 
 Unpause a paused domain.

With this patch applied:
 # xm pause Domain-0
 Error: Cannot pause privileged domain Domain-0
 Usage: xm pause <Domain>
 
 Pause execution of a domain.
 # xm unpause Domain-0
 Error: Cannot unpause privileged domain Domain-0
 Usage: xm unpause <Domain>
 
 Unpause a paused domain.


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>