WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] stubdoms phy disks sharing

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] stubdoms phy disks sharing
From: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Date: Mon, 18 May 2009 14:19:06 +0100
Delivery-date: Mon, 18 May 2009 06:19:06 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.14 (X11/20080505)
Hi all,
this patch fixes the stubdoms issue with phy disks: add an exception for
stubdoms in the same_vm hotplug script function.

Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx> 

---


diff -r 7d552e56d105 tools/hotplug/Linux/block-common.sh
--- a/tools/hotplug/Linux/block-common.sh       Wed May 13 10:39:44 2009 +0100
+++ b/tools/hotplug/Linux/block-common.sh       Mon May 18 11:08:58 2009 +0100
@@ -110,7 +110,8 @@
   # 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-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>