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" ] } _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On Mon, May 18, 2009 at 02:19:06PM +0100, Stefano Stabellini wrote:> 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> 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" ] > } > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Stefano Stabellini
2009-May-19 11:38 UTC
Re: [Xen-devel] [PATCH] stubdoms phy disks sharing
Pasi Kärkkäinen wrote:> On Mon, May 18, 2009 at 02:19:06PM +0100, Stefano Stabellini wrote: >> 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. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel