diff options
author | emellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com> | 2006-02-27 17:16:04 +0100 |
---|---|---|
committer | emellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com> | 2006-02-27 17:16:04 +0100 |
commit | f32e156c0e2405de3ec89e8f3bbf66b1e4a8254c (patch) | |
tree | 85f51f0e1bab15675b0eaf425334d0ffdc84e7ab /tools/examples/xen-backend.rules | |
parent | 1b2fcd85a00f328a5f71aacd7d99e1085440617b (diff) | |
download | xen-f32e156c0e2405de3ec89e8f3bbf66b1e4a8254c.tar.gz xen-f32e156c0e2405de3ec89e8f3bbf66b1e4a8254c.tar.bz2 xen-f32e156c0e2405de3ec89e8f3bbf66b1e4a8254c.zip |
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>
Diffstat (limited to 'tools/examples/xen-backend.rules')
-rw-r--r-- | tools/examples/xen-backend.rules | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/examples/xen-backend.rules b/tools/examples/xen-backend.rules index aec5c46121..91f0b06107 100644 --- a/tools/examples/xen-backend.rules +++ b/tools/examples/xen-backend.rules @@ -2,6 +2,4 @@ SUBSYSTEM=="xen-backend", KERNEL=="vbd*", RUN+="/etc/xen/scripts/block $env{ACTI SUBSYSTEM=="xen-backend", KERNEL=="vtpm*", RUN+="/etc/xen/scripts/vtpm $env{ACTION}" SUBSYSTEM=="xen-backend", KERNEL=="vif*", ACTION=="online", RUN+="$env{script} online" SUBSYSTEM=="xen-backend", KERNEL=="vif*", ACTION=="offline", RUN+="$env{script} offline" -SUBSYSTEM=="xen-backend", ACTION=="remove", RUN+="/bin/bash -c '/usr/bin/xenstore-rm -t $$(/usr/bin/xenstore-read $env{XENBUS_PATH}/frontend)'" -SUBSYSTEM=="xen-backend", ACTION=="remove", RUN+="/usr/bin/xenstore-rm -t $env{XENBUS_PATH}" -SUBSYSTEM=="xen-backend", ACTION=="remove", RUN+="/usr/bin/xenstore-rm -t error/$env{XENBUS_PATH}" +SUBSYSTEM=="xen-backend", ACTION=="remove", RUN+="/etc/xen/scripts/xen-hotplug-cleanup" |