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-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] stubdom: fix issue with phy disks
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 19 May 2009 09:30:22 -0700
Delivery-date: Tue, 19 May 2009 09:30:33 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] stubdom: fix issue with phy disks, Xen patchbot-unstable <=