• E
    snapshot: forbid snapshot on autodestroy domain · 173015be
    Eric Blake 提交于
    There is no reason to forbid pausing an autodestroy domain
    (not to mention that 'virsh start --paused --autodestroy'
    succeeds in creating a paused autodestroy domain).
    
    Meanwhile, qemu was failing to enforce the API documentation that
    autodestroy domains cannot be saved.  And while the original
    documentation only mentioned save/restore, snapshots are another
    form of saving that are close enough in semantics as to make no
    sense on one-shot domains.
    
    * src/qemu/qemu_driver.c (qemudDomainSuspend): Drop bogus check.
    (qemuDomainSaveInternal, qemuDomainSnapshotCreateXML): Forbid
    saves of autodestroy domains.
    * src/libvirt.c (virDomainCreateWithFlags, virDomainCreateXML):
    Document snapshot interaction.
    173015be
qemu_driver.c 292.1 KB