view buildconfigs/src.tarball @ 15852:7dba4441bf92

xend: Fix error message for xm trigger command.

When I tested xm trigger command with a wrong argument, I saw the
following error message.

# xm trigger vm1 xyz
Error: __init__() takes exactly 2 arguments (3 given)
Usage: xm trigger <Domain> <nmi|reset|init> [<VCPU>]

Send a trigger to a domain.

This patch fixes the error message as follows.

# xm trigger vm1 xyz
Error: Invalid trigger: xyz
Usage: xm trigger <Domain> <nmi|reset|init> [<VCPU>]

Send a trigger to a domain.

The type of "TRIGGER_TYPE" is dictionary. domain_send_trigger()
refers to the keys of "TRIGGER_TYPE" without using keys() currently.
This patch adds keys() there.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
author kfraser@localhost.localdomain
date Fri Sep 07 11:24:28 2007 +0100 (2007-09-07)
parents a1b6555a37bf
children 34f7017a5941
line source
1 XEN_LINUX_MIRROR ?= http://www.kernel.org/pub/linux/kernel/v2.6/
2 XEN_LINUX_TARBALL ?= linux-$(LINUX_VER)-xen.tar.bz2
4 # Update using ketchup instead of manipulating tarball manually.
9 KETCHUP ?= python buildconfigs/ketchup
11 vpath linux-%.tar.bz2 $(LINUX_SRC_PATH)
13 # download a pristine Linux kernel tarball if there isn't one in LINUX_SRC_PATH
14 linux-%.tar.bz2:
15 @echo "Cannot find $@ in path $(LINUX_SRC_PATH)"
16 wget $(XEN_LINUX_MIRROR)/$@ -O./$@
18 # XXX create a pristine tree for diff -Nurp convenience
21 %/.valid-src: $(__XEN_LINUX_UPDATE)
22 $(KETCHUP) -d $(@D) $(LINUX_VER)
23 touch $@ # update timestamp to avoid rebuild
24 else
25 %/.valid-src: $(__XEN_LINUX_UPDATE) %.tar.bz2
26 rm -rf tmp-linux-$* $(@D)
27 mkdir -p tmp-linux-$*
28 tar -C tmp-linux-$* -jxf $<
29 -@rm -f tmp-linux-$*/pax_global_header
30 mv tmp-linux-$*/* $(@D)
31 @rm -rf tmp-linux-$*
32 touch $@ # update timestamp to avoid rebuild
33 endif