[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH 0/5]New atomic API to delete snapshot object



Add a new snapshot API to delete snapshot object atomically

int virDomainSnapshotDeleteByName(virDomainPtr domain,
                                  const char *name,
                                  unsigned int flags);

The existing virDomainSnapshotDelete API accepts the snapshot
object being deleted as an argument that would be not API atomic.

Guannan Ren(5)
 [PATCH 1/5] snapshot: define new API virDomainSnapshotDeleteByName
 [PATCH 2/5] snapshot: auto generate RPC calls for remoteDomainSnapshotDeleteByName
 [PATCH 3/5] qemu: implement SnapshotDeleteByName
 [PATCH 4/5] python: make auto-generated function name nicer
 [PATCH 5/5] virsh: use virDomainSnapshotDeleteByName in virsh

 include/libvirt/libvirt.h.in |   5 +++++
 python/generator.py          |   3 +++
 src/driver.h                 |   6 ++++++
 src/libvirt.c                |  73 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 src/libvirt_public.syms      |   5 +++++
 src/qemu/qemu_driver.c       | 102 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------
 src/remote/remote_driver.c   |   1 +
 src/remote/remote_protocol.x |  13 +++++++++++-
 src/remote_protocol-structs  |   7 +++++++
 tools/virsh-snapshot.c       |  64 ++++++++++++++++++++++++++++++++++++++++++++++++----------
 10 files changed, 249 insertions(+), 30 deletions(-)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]