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

[Xen-changelog] Use new -t flag on xenstore-rm to keep the store pruned when devices go away.



# HG changeset patch
# User emellor@xxxxxxxxxxxxxxxxxxxxxx
# Node ID 4c9dbbb5fe3dae45a3016acc65b032e606dca270
# Parent  a0ec7370eec0d2269379accf83b610b4669ec6f9
Use new -t flag on xenstore-rm to keep the store pruned when devices go away.

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

diff -r a0ec7370eec0 -r 4c9dbbb5fe3d tools/examples/xen-backend.agent
--- a/tools/examples/xen-backend.agent  Sat Oct 15 11:55:03 2005
+++ b/tools/examples/xen-backend.agent  Sat Oct 15 11:56:07 2005
@@ -22,7 +22,7 @@
         ;;
     esac
     # remove device backend store entries
-    xenstore-rm "$XENBUS_PATH"
+    xenstore-rm -t "$XENBUS_PATH"
     ;;
   online)
     case "$PHYSDEVDRIVER" in
diff -r a0ec7370eec0 -r 4c9dbbb5fe3d tools/examples/xen-backend.rules
--- a/tools/examples/xen-backend.rules  Sat Oct 15 11:55:03 2005
+++ b/tools/examples/xen-backend.rules  Sat Oct 15 11:56:07 2005
@@ -1,4 +1,4 @@
 SUBSYSTEM=="xen-backend", KERNEL=="vbd*", ACTION=="add", 
RUN+="/etc/xen/scripts/block bind"
 SUBSYSTEM=="xen-backend", KERNEL=="vbd*", ACTION=="remove", 
RUN+="/etc/xen/scripts/block unbind"
 SUBSYSTEM=="xen-backend", KERNEL=="vif*", ENV{PHYSDEVDRIVER}=="vif", 
ACTION=="online", RUN+="$env{script} up"
-SUBSYSTEM=="xen-backend", ACTION=="remove", RUN+="/usr/bin/xenstore-rm 
$env{XENBUS_PATH}"
+SUBSYSTEM=="xen-backend", ACTION=="remove", RUN+="/usr/bin/xenstore-rm -t 
$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®.