Files
xen/tools/examples/xen-backend.agent
T
emellor@leeni.uk.xensource.com f32e156c0e Break out the hotplug cleanup code into xen-hotplug-cleanup. Claim the block
script's lock before doing the cleanup, to avoid a race that causes the message
"xenstore-list: could not list path backend/vbd/40" in /var/log/hotplug.log,
with a subsequent refusal to create the domain, after a domain reboot.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-02-27 17:16:04 +01:00

28 lines
358 B
Bash
Executable File

#! /bin/sh
PATH=/etc/xen/scripts:$PATH
case "$XENBUS_TYPE" in
vbd)
/etc/xen/scripts/block "$ACTION"
;;
vtpm)
/etc/xen/scripts/vtpm "$ACTION"
;;
vif)
[ -n "$script" ] && $script "$ACTION"
;;
esac
case "$ACTION" in
add)
;;
remove)
/etc/xen/scripts/xen-hotplug-cleanup
;;
online)
;;
offline)
;;
esac