• E
    snapshot: remove snapshot metadata on transient exit · e485dcc9
    Eric Blake 提交于
    Commit 282fe1f0 documented that transient domains will auto-delete
    any snapshot metadata when the last reference to the domain is
    removed, and that management apps are in charge of grabbing any
    snapshot metadata prior to that point.  However, this was not
    actually implemented for qemu until now.
    
    * src/qemu/qemu_driver.c (qemudDomainCreate)
    (qemuDomainDestroyFlags, qemuDomainSaveInternal)
    (qemudDomainCoreDump, qemuDomainRestoreFlags, qemudDomainDefine)
    (qemuDomainUndefineFlags, qemuDomainMigrateConfirm3)
    (qemuDomainRevertToSnapshot): Clean up snapshot metadata.
    * src/qemu/qemu_migration.c (qemuMigrationPrepareAny)
    (qemuMigrationPerformJob, qemuMigrationPerformPhase)
    (qemuMigrationFinish): Likewise.
    * src/qemu/qemu_process.c (qemuProcessHandleMonitorEOF)
    (qemuProcessReconnect, qemuProcessReconnectHelper)
    (qemuProcessAutoDestroyDom): Likewise.
    e485dcc9
qemu_driver.c 328.0 KB