aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis V. Lunev <den@openvz.org>2015-11-19 09:42:07 +0300
committerJuan Quintela <quintela@redhat.com>2015-11-19 11:50:00 +0100
commitc6258b04f19bc690b576b089f621cb5333c533d7 (patch)
treec6fc765f52efcd9786e1bbcb4ad5b0aac188606e
parent723ccda1a0eecece8e70dbcdd35a603f6c41a475 (diff)
downloadqemu-c6258b04f19bc690b576b089f621cb5333c533d7.zip
qemu-c6258b04f19bc690b576b089f621cb5333c533d7.tar.gz
qemu-c6258b04f19bc690b576b089f621cb5333c533d7.tar.bz2
migration: drop find_vmstate_bs check in hmp_delvm
There is no much sense to do the check and write warning. Signed-off-by: Denis V. Lunev <den@openvz.org> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Fam Zheng <famz@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Tested-by: Greg Kurz <gkurz@linux.vnet.ibm.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
-rw-r--r--migration/savevm.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/migration/savevm.c b/migration/savevm.c
index 4e6d578..63c07e1 100644
--- a/migration/savevm.c
+++ b/migration/savevm.c
@@ -2116,11 +2116,6 @@ void hmp_delvm(Monitor *mon, const QDict *qdict)
Error *err;
const char *name = qdict_get_str(qdict, "name");
- if (!find_vmstate_bs()) {
- monitor_printf(mon, "No block device supports snapshots\n");
- return;
- }
-
if (bdrv_all_delete_snapshot(name, &bs, &err) < 0) {
monitor_printf(mon,
"Error while deleting snapshot on device '%s': %s\n",