• E
    snapshot: identify which snapshots have metadata · 9f5e53e2
    Eric Blake 提交于
    To make it easier to know when undefine will fail because of existing
    snapshot metadata, we need to know how many snapshots have metadata.
    
    Also, it is handy to filter the list of snapshots to just those that
    have no parents; document that flag now, but implement it in later patches.
    
    * include/libvirt/libvirt.h.in (VIR_DOMAIN_SNAPSHOT_LIST_ROOTS)
    (VIR_DOMAIN_SNAPSHOT_LIST_METADATA): New flags.
    * src/libvirt.c (virDomainSnapshotNum)
    (virDomainSnapshotListNames): Document them.
    * src/esx/esx_driver.c (esxDomainSnapshotNum)
    (esxDomainSnapshotListNames): Implement trivial flag.
    * src/vbox/vbox_tmpl.c (vboxDomainSnapshotNum)
    (vboxDomainSnapshotListNames): Likewise.
    * src/qemu/qemu_driver.c (qemuDomainSnapshotNum)
    (qemuDomainSnapshotListNames): Likewise.
    9f5e53e2
esx_driver.c 151.4 KB