[libvirt] [PATCH V6] support offline migration
liguang
lig.fnst at cn.fujitsu.com
Wed Sep 12 02:20:38 UTC 2012
在 2012-09-11二的 08:30 -0600,Eric Blake写道:
>
> You either need to take care of migrating storage if the user does
> 'virsh migrate [whatever-we-decide-for-offline] --copy-storage-*', or
> else explicitly reject attempts to migrate storage in parallel with an
> offline migration.
right, I'll reject --copy-storage-* and error out.
>
> > @@ -439,6 +441,11 @@ qemuMigrationCookieXMLFormat(struct qemud_driver *driver,
> > virBufferAdjustIndent(buf, -2);
> > }
> >
> > + if (mig->flags & QEMU_MIGRATION_COOKIE_OFFLINE) {
> > + virBufferAsprintf(buf, " <offline>\n");
> > + virBufferAddLit(buf, " </offline>\n");
>
> Collapse these two lines into the simpler one-liner:
>
> virBufferAddLit(buf, " <offline/>\n");
>
OK, I'll collapse them into one.
Thanks!
--
liguang lig.fnst at cn.fujitsu.com
FNST linux kernel team
More information about the libvir-list
mailing list