[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Remove the frontend device directories as well as the backend ones.



# HG changeset patch
# User emellor@xxxxxxxxxxxxxxxxxxxxxx
# Node ID e48bb8550f95c151dcda95a043af88e12fc899d9
# Parent  fc41a9c9bc3667667ce7b996acdff13898031fd3
Remove the frontend device directories as well as the backend ones.

Closes bug #424.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>

diff -r fc41a9c9bc36 -r e48bb8550f95 tools/examples/xen-backend.agent
--- a/tools/examples/xen-backend.agent  Wed Nov 23 18:47:54 2005
+++ b/tools/examples/xen-backend.agent  Wed Nov 23 19:13:13 2005
@@ -15,6 +15,9 @@
   add)
     ;;
   remove)
+    # remove device frontend store entries
+    xenstore-rm -t $(xenstore-read "$XENBUS_PATH/frontend") || true
+
     # remove device backend store entries
     xenstore-rm -t "$XENBUS_PATH"       || true
     xenstore-rm -t "error/$XENBUS_PATH" || true
diff -r fc41a9c9bc36 -r e48bb8550f95 tools/examples/xen-backend.rules
--- a/tools/examples/xen-backend.rules  Wed Nov 23 18:47:54 2005
+++ b/tools/examples/xen-backend.rules  Wed Nov 23 19:13:13 2005
@@ -1,5 +1,6 @@
 SUBSYSTEM=="xen-backend", KERNEL=="vbd*", RUN+="/etc/xen/scripts/block 
$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}"

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.