diff options
author | Denis V. Lunev <den@openvz.org> | 2015-11-19 09:42:03 +0300 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2015-11-19 11:50:00 +0100 |
commit | 9b00ea376d42e543feb12d7ce5435366d01aab1b (patch) | |
tree | 13e31dd2967caec0bca0b7d05a8c7e7ea2e3ee0f /include | |
parent | 25af925fffc29f2e4c05aee10c61c823c4cdf398 (diff) |
snapshot: create bdrv_all_delete_snapshot helper
to delete snapshots from all loaded block drivers.
The patch also ensures proper locking.
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>
CC: Kevin Wolf <kwolf@redhat.com>
Tested-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/block/snapshot.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/block/snapshot.h b/include/block/snapshot.h index 9ddfd42d89..d02d2b1c09 100644 --- a/include/block/snapshot.h +++ b/include/block/snapshot.h @@ -82,5 +82,7 @@ int bdrv_snapshot_load_tmp_by_id_or_name(BlockDriverState *bs, * when appropriate for appropriate block drivers */ bool bdrv_all_can_snapshot(BlockDriverState **first_bad_bs); +int bdrv_all_delete_snapshot(const char *name, BlockDriverState **first_bsd_bs, + Error **err); #endif |