From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Stabellini Subject: [PATCH] stubdoms phy disks sharing Date: Mon, 18 May 2009 14:19:06 +0100 Message-ID: <4A11604A.8040405@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel List-Id: xen-devel@lists.xenproject.org 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 --- 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" ] }