Skip to contentSkip to conversation

stubdoms phy disks sharing

PATCH In review Stefano Stabellini 2 participants 3 messages May 18, 2009 – May 19, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 stubdoms phy disks sharing

Hi all,
this patch fixes the stubdoms issue with phy disks: add an exception for stubdoms in the same_vm hotplug script function.

---

tools/hotplug/Linux/block-common.sh +3 -2
diff -r 7d552e56d105 tools/hotplug/Linux/block-common.sh
@@ -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" ]
 }
#1 lore raw
Quoted 4 lines · Stefano Stabellini

Hi all,
this patch fixes the stubdoms issue with phy disks: add an exception for stubdoms in the same_vm hotplug script function.

Hi,

Is this needed for Xen 3.4.0 ?

-- Pasi

Quoted 24 lines

---

diff -r 7d552e56d105 tools/hotplug/Linux/block-common.sh

tools/hotplug/Linux/block-common.sh +3 -2
@@ -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
[email protected]
http://lists.xensource.com/xen-devel

#2 lore raw
Quoted 10 lines · Pasi Kärkkäinen
Quoted 4 lines · Stefano Stabellini

Hi all,
this patch fixes the stubdoms issue with phy disks: add an exception for stubdoms in the same_vm hotplug script function.

Hi,

Is this needed for Xen 3.4.0 ?

Yes, I think it would be a good idea to backport this patch to the 3.4 branch.