diff options
author | Daniel P. Berrangé | 2021-02-04 13:48:26 +0100 |
---|---|---|
committer | Dr. David Alan Gilbert | 2021-02-08 12:19:51 +0100 |
commit | cf3a74c94f3da92fdf8d45047756f0e43657be1a (patch) | |
tree | 4bd20f44846b8a99eb0b4d23504d410e7f14f922 /monitor | |
parent | migration: stop returning errno from load_snapshot() (diff) | |
download | qemu-cf3a74c94f3da92fdf8d45047756f0e43657be1a.tar.gz qemu-cf3a74c94f3da92fdf8d45047756f0e43657be1a.tar.xz qemu-cf3a74c94f3da92fdf8d45047756f0e43657be1a.zip |
block: add ability to specify list of blockdevs during snapshot
When running snapshot operations, there are various rules for which
blockdevs are included/excluded. While this provides reasonable default
behaviour, there are scenarios that are not well handled by the default
logic. Some of the conditions do not have a single correct answer.
Thus there needs to be a way for the mgmt app to provide an explicit
list of blockdevs to perform snapshots across. This can be achieved
by passing a list of node names that should be used.
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20210204124834.774401-5-berrange@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'monitor')
-rw-r--r-- | monitor/hmp-cmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/monitor/hmp-cmds.c b/monitor/hmp-cmds.c index 6ff050ac3d..f795261f77 100644 --- a/monitor/hmp-cmds.c +++ b/monitor/hmp-cmds.c @@ -1158,7 +1158,7 @@ void hmp_delvm(Monitor *mon, const QDict *qdict) Error *err = NULL; const char *name = qdict_get_str(qdict, "name"); - bdrv_all_delete_snapshot(name, &err); + bdrv_all_delete_snapshot(name, false, NULL, &err); hmp_handle_error(mon, err); } |