]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commitdiff
stubdom: fix issue with phy disks
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 19 May 2009 00:18:35 +0000 (01:18 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 19 May 2009 00:18:35 +0000 (01:18 +0100)
Add an exception for stubdoms in the same_vm hotplug script function.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
tools/hotplug/Linux/block-common.sh

index a0ebc9b12a29c028e83ff5846ae7d34eb45ad796..efedbf50d4246767c86fcbaf87ddd9e3270eef08 100644 (file)
@@ -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" ]
 }