From: Pascal Bouchareine Subject: [PATCH] fix external-device-migrate step 0 Date: Wed, 30 Jan 2008 13:47:22 +0100 Message-ID: <20080130124722.GA64096@bar.gandi.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="gBBFr7Ir9EOA20Yy" Return-path: Content-Disposition: inline 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 --gBBFr7Ir9EOA20Yy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline The attached patch adds domain name to a migrateDevice call, so the helper script (external-device-migrate example) does not fail at step 0 (MIGRATION_TEST). Applies with offset to 3.1/3.2-testing.hg Signed-off-by: Pascal Bouchareine -- \o/ Pascal Bouchareine - Gandi g 0170393757 15, place de la Nation - 75011 Paris --gBBFr7Ir9EOA20Yy Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="external_device_migrate.patch" --- a/tools/python/xen/xend/XendDomainInfo.py Mon Jan 28 10:37:08 2008 +0000 +++ b/tools/python/xen/xend/XendDomainInfo.py Wed Jan 30 11:29:45 2008 +0100 @@ -1569,7 +1576,7 @@ class XendDomainInfo: @raise: XendError for a device that cannot be migrated """ for (n, c) in self.info.all_devices_sxpr(): - rc = self.migrateDevice(n, c, network, dst, DEV_MIGRATE_TEST) + rc = self.migrateDevice(n, c, network, dst, DEV_MIGRATE_TEST, self.getName()) if rc != 0: raise XendError("Device of type '%s' refuses migration." % n) --gBBFr7Ir9EOA20Yy 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 --gBBFr7Ir9EOA20Yy--