On 04/24/2013 09:32 AM, Pavel Hrdina wrote:
> Signed-off-by: Pavel Hrdina <phrd...@redhat.com>
> ---
>  block.c                   | 21 +++++++++++++--------
>  block/qcow2-snapshot.c    | 19 +++++++++++++------
>  block/qcow2.h             |  4 +++-
>  block/rbd.c               | 10 +++++++---
>  block/sheepdog.c          |  6 ++++--
>  include/block/block.h     |  4 +++-
>  include/block/block_int.h |  4 +++-
>  qemu-img.c                |  8 +++-----
>  savevm.c                  | 32 ++++++++++++++++----------------
>  9 files changed, 65 insertions(+), 43 deletions(-)
> 

> +++ b/block/sheepdog.c
> @@ -1937,10 +1937,12 @@ out:
>      return ret;
>  }
>  
> -static int sd_snapshot_delete(BlockDriverState *bs, const char *snapshot_id)
> +static void sd_snapshot_delete(BlockDriverState *bs,
> +                               const char *snapshot_id,
> +                               Error **errp)
>  {
>      /* FIXME: Delete specified snapshot id.  */
> -    return 0;
> +    error_setg(errp, "Deleting snapshot is not supported");

Commit message should mention this bug fix.

But the code looked okay to me, so:

Reviewed-by: Eric Blake <ebl...@redhat.com>

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to