ia64/xen-unstable

changeset 8009:e48bb8550f95

Remove the frontend device directories as well as the backend ones.

Closes bug #424.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@leeni.uk.xensource.com
date Wed Nov 23 19:13:13 2005 +0000 (2005-11-23)
parents fc41a9c9bc36
children 8aabf8959595
files tools/examples/xen-backend.agent tools/examples/xen-backend.rules
line diff
     1.1 --- a/tools/examples/xen-backend.agent	Wed Nov 23 18:47:54 2005 +0000
     1.2 +++ b/tools/examples/xen-backend.agent	Wed Nov 23 19:13:13 2005 +0000
     1.3 @@ -15,6 +15,9 @@ case "$ACTION" in
     1.4    add)
     1.5      ;;
     1.6    remove)
     1.7 +    # remove device frontend store entries
     1.8 +    xenstore-rm -t $(xenstore-read "$XENBUS_PATH/frontend") || true
     1.9 +
    1.10      # remove device backend store entries
    1.11      xenstore-rm -t "$XENBUS_PATH"       || true
    1.12      xenstore-rm -t "error/$XENBUS_PATH" || true
     2.1 --- a/tools/examples/xen-backend.rules	Wed Nov 23 18:47:54 2005 +0000
     2.2 +++ b/tools/examples/xen-backend.rules	Wed Nov 23 19:13:13 2005 +0000
     2.3 @@ -1,5 +1,6 @@
     2.4  SUBSYSTEM=="xen-backend", KERNEL=="vbd*", RUN+="/etc/xen/scripts/block $env{ACTION}"
     2.5  SUBSYSTEM=="xen-backend", KERNEL=="vif*", ACTION=="online", RUN+="$env{script} online"
     2.6  SUBSYSTEM=="xen-backend", KERNEL=="vif*", ACTION=="offline", RUN+="$env{script} offline"
     2.7 +SUBSYSTEM=="xen-backend", ACTION=="remove", RUN+="/bin/bash -c '/usr/bin/xenstore-rm -t $$(/usr/bin/xenstore-read $env{XENBUS_PATH}/frontend)'"
     2.8  SUBSYSTEM=="xen-backend", ACTION=="remove", RUN+="/usr/bin/xenstore-rm -t $env{XENBUS_PATH}"
     2.9  SUBSYSTEM=="xen-backend", ACTION=="remove", RUN+="/usr/bin/xenstore-rm -t error/$env{XENBUS_PATH}"