direct-io.hg

changeset 14990:26643b7b48b9

xend: 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 <john.levon@sun.com>
author kfraser@localhost.localdomain
date Tue May 01 10:18:11 2007 +0100 (2007-05-01)
parents 1cfe47358f9f
children ede8db6534ef
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Tue May 01 10:16:26 2007 +0100
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Tue May 01 10:18:11 2007 +0100
     1.3 @@ -885,7 +885,7 @@ class XendDomainInfo:
     1.4  
     1.5          # Check whether image definition has been updated
     1.6          image_sxp = self._readVm('image')
     1.7 -        if image_sxp and image_sxp != self.info.image_sxpr():
     1.8 +        if image_sxp and image_sxp != sxp.to_string(self.info.image_sxpr()):
     1.9              self.info.update_with_image_sxp(sxp.from_string(image_sxp))
    1.10              changed = True
    1.11