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

[Xen-changelog] [xen-unstable] stubdom: fix issue with phy disks



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1242692315 -3600
# Node ID c1340cda65fb5859acc48e3a9aba55b52adc5347
# Parent  eb66644da833fbb437c205b554813bbfbd5aa398
stubdom: fix issue with phy disks

Add an exception for stubdoms in the same_vm hotplug script function.

Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
---
 tools/hotplug/Linux/block-common.sh |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff -r eb66644da833 -r c1340cda65fb tools/hotplug/Linux/block-common.sh
--- a/tools/hotplug/Linux/block-common.sh       Tue May 19 01:17:16 2009 +0100
+++ b/tools/hotplug/Linux/block-common.sh       Tue May 19 01:18:35 2009 +0100
@@ -110,7 +110,8 @@ same_vm()
   # allowed.
   local othervm=$(xenstore_read_default "/local/domain/$otherdom/vm"         \
                   "$FRONTEND_UUID")
-
-  [ "$FRONTEND_UUID" = "$othervm" ]
+  local target=$(xenstore_read_default  "/local/domain/$FRONTEND_ID/target"   \
+                 "-1")
+  [ "$FRONTEND_UUID" = "$othervm" -o "$target" = "$otherdom" ]
 }
 

_______________________________________________
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®.