From: john.levon@sun.com Subject: [PATCH] Fix spurious store changes on rename/migrate Date: Mon, 30 Apr 2007 15:30:25 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" 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@lists.xensource.com List-Id: xen-devel@lists.xenproject.org # HG changeset patch # User john.levon@sun.com # Date 1177972216 25200 # Node ID cdda87d292fe252e18a37ca9d7c385e9e7fed1cd # Parent 1b4f1d6508e88ba329620cb3c189d16e8f89b7fa Fix spurious store changes on rename/migrate _storeChanged() was incorrectly comparing a string to an sxpr, thus always firing and causing unnecessary watches to be fired in the domU. Signed-off-by: John Levon diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -885,7 +885,7 @@ class XendDomainInfo: # Check whether image definition has been updated image_sxp = self._readVm('image') - if image_sxp and image_sxp != self.info.image_sxpr(): + if image_sxp and image_sxp != sxp.to_string(self.info.image_sxpr()): self.info.update_with_image_sxp(sxp.from_string(image_sxp)) changed = True