snapshot: create helper to test that block drivers supports snapshots
commite9ff957ac26e0e11869a3568cfa7423ae33c51e7
authorDenis V. Lunev <den@openvz.org>
Thu, 19 Nov 2015 06:42:01 +0000 (19 09:42 +0300)
committerJuan Quintela <quintela@redhat.com>
Thu, 19 Nov 2015 10:50:00 +0000 (19 11:50 +0100)
tree202f78903d148296e9bd8a86814b47e10426816e
parent5df5416e639cd75bd85d243af41387c2418fa580
snapshot: create helper to test that block drivers supports snapshots

The patch enforces proper locking for this operation.

Signed-off-by: Denis V. Lunev <den@openvz.org>
Reviewed-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
CC: Kevin Wolf <kwolf@redhat.com>
Tested-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
block/snapshot.c
include/block/snapshot.h
migration/savevm.c