From: Stefan Berger Subject: [PATCH] [Xend] Xend forgets to write VDI UUID into domain state file Date: Tue, 18 Mar 2008 07:26:58 -0400 Message-ID: <1205839618.28202.3.camel@941e-2.watson.ibm.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-/9STawgH4sFykpJUdvwt" 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 Cc: Keir Fraser List-Id: xen-devel@lists.xenproject.org --=-/9STawgH4sFykpJUdvwt Content-Type: text/plain Content-Transfer-Encoding: 7bit Xend forgets to write the domain's VDI UUID into the domain state file once the domain is started (before it's there). Once xend is restarted it will not know the association between the VBD and VDI anymore due to the missing UUID. This patch fixes this. Signed-off-by: Stefan Berger --=-/9STawgH4sFykpJUdvwt Content-Disposition: attachment; filename=vbd_vid_link_fix.diff Content-Type: text/x-patch; name=vbd_vid_link_fix.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit Index: root/xen-unstable.hg/tools/python/xen/xend/XendConfig.py =================================================================== --- root.orig/xen-unstable.hg/tools/python/xen/xend/XendConfig.py +++ root/xen-unstable.hg/tools/python/xen/xend/XendConfig.py @@ -990,6 +990,7 @@ class XendConfig(dict): dev_type, dev_cfg = self['devices'][dev_uuid] is_bootable = dev_cfg.get('bootable', 0) config.append(['bootable', int(is_bootable)]) + config.append(['VDI'], dev_cfg.get('VDI', '')) sxpr.append(['device', config]) --=-/9STawgH4sFykpJUdvwt Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=-/9STawgH4sFykpJUdvwt--