All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
To: xen-devel <xen-devel@lists.xensource.com>
Subject: [PATCH] stubdoms phy disks sharing
Date: Mon, 18 May 2009 14:19:06 +0100	[thread overview]
Message-ID: <4A11604A.8040405@eu.citrix.com> (raw)

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@eu.citrix.com> 

---


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" ]
 }

             reply	other threads:[~2009-05-18 13:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-18 13:19 Stefano Stabellini [this message]
2009-05-19 10:47 ` [PATCH] stubdoms phy disks sharing Pasi Kärkkäinen
2009-05-19 11:38   ` Stefano Stabellini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A11604A.8040405@eu.citrix.com \
    --to=stefano.stabellini@eu.citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.