[libvirt PATCH 01/30] libvirt: introduce VIR_DOMAIN_JOB_OPERATION_SNAPSHOT_DELETE

Pavel Hrdina posted 30 patches 3 years, 2 months ago
There is a newer version of this series
[libvirt PATCH 01/30] libvirt: introduce VIR_DOMAIN_JOB_OPERATION_SNAPSHOT_DELETE
Posted by Pavel Hrdina 3 years, 2 months ago
This will be used by snapshot delete async domain job.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
---
 include/libvirt/libvirt-domain.h | 1 +
 tools/virsh-domain.c             | 1 +
 2 files changed, 2 insertions(+)

diff --git a/include/libvirt/libvirt-domain.h b/include/libvirt/libvirt-domain.h
index 295fd30c93..4b1de1d5b8 100644
--- a/include/libvirt/libvirt-domain.h
+++ b/include/libvirt/libvirt-domain.h
@@ -4172,6 +4172,7 @@ typedef enum {
     VIR_DOMAIN_JOB_OPERATION_SNAPSHOT_REVERT = 7, /* (Since: 3.3.0) */
     VIR_DOMAIN_JOB_OPERATION_DUMP = 8, /* (Since: 3.3.0) */
     VIR_DOMAIN_JOB_OPERATION_BACKUP = 9, /* (Since: 6.0.0) */
+    VIR_DOMAIN_JOB_OPERATION_SNAPSHOT_DELETE = 10, /* (Since: 9.0.0) */
 
 # ifdef VIR_ENUM_SENTINELS
     VIR_DOMAIN_JOB_OPERATION_LAST /* (Since: 3.3.0) */
diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c
index 2d162cf8c0..3e94744c95 100644
--- a/tools/virsh-domain.c
+++ b/tools/virsh-domain.c
@@ -6141,6 +6141,7 @@ VIR_ENUM_IMPL(virshDomainJobOperation,
               N_("Snapshot revert"),
               N_("Dump"),
               N_("Backup"),
+              N_("Snapshot delete"),
 );
 
 static const char *
-- 
2.38.1
Re: [libvirt PATCH 01/30] libvirt: introduce VIR_DOMAIN_JOB_OPERATION_SNAPSHOT_DELETE
Posted by Peter Krempa 3 years, 1 month ago
On Thu, Dec 08, 2022 at 14:30:37 +0100, Pavel Hrdina wrote:
> This will be used by snapshot delete async domain job.
> 
> Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
> ---
>  include/libvirt/libvirt-domain.h | 1 +
>  tools/virsh-domain.c             | 1 +
>  2 files changed, 2 insertions(+)

Reviewed-by: Peter Krempa <pkrempa@redhat.com>