ia64/xen-unstable

view tools/examples/xen-hotplug-cleanup @ 11100:905ff6e616cc

[HVM] Add stubs to Linux for the new hvm_op hypercall.
Signed-off-by: Steven Smith <ssmith@xensource.com>
author kfraser@localhost.localdomain
date Mon Aug 14 11:33:50 2006 +0100 (2006-08-14)
parents 849723752858
children b071319927b6
line source
1 #! /bin/sh
3 dir=$(dirname "$0")
4 . "$dir/xen-hotplug-common.sh"
6 # Claim the lock protecting /etc/xen/scripts/block. This stops a race whereby
7 # paths in the store would disappear underneath that script as it attempted to
8 # read from the store checking for device sharing.
9 # Any other scripts that do similar things will have to have their lock
10 # claimed too.
11 # This is pretty horrible, but there's not really a nicer way of solving this.
12 claim_lock "block"
14 # remove device frontend store entries
15 xenstore-rm -t \
16 $(xenstore-read "$XENBUS_PATH/frontend" 2>/dev/null) 2>/dev/null || true
18 # remove device backend store entries
19 xenstore-rm -t "$XENBUS_PATH" 2>/dev/null || true
20 xenstore-rm -t "error/$XENBUS_PATH" 2>/dev/null || true
22 release_lock "block"