migration: introduce a delete_snapshot wrapper
commitbef7e9e2c7549696f7ddbe3a1dd236531d2af518
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 4 Feb 2021 12:48:31 +0000 (4 12:48 +0000)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Mon, 8 Feb 2021 11:19:51 +0000 (8 11:19 +0000)
tree7397d7371f84ecf75864c7fc336aabeb4d9e780a
parentf1a9fcdd0197ed5ecfee187f8834e7b609d596a6
migration: introduce a delete_snapshot wrapper

Make snapshot deletion consistent with the snapshot save
and load commands by using a wrapper around the blockdev
layer. The main difference is that we get upfront validation
of the passed in device list (if any).

Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20210204124834.774401-10-berrange@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
include/migration/snapshot.h
migration/savevm.c
monitor/hmp-cmds.c