Re: [Qemu-devel] [PATCH 1/3] block: Add blk_get_refcnt()

2015-10-17 Thread Max Reitz
On 13.10.2015 15:48, Alberto Garcia wrote: > This function returns the reference count of a given BlockBackend. > For convenience, it returns 0 if the BlockBackend pointer is NULL. > > Signed-off-by: Alberto Garcia > --- > block/block-backend.c | 5 + > include/sysemu/block-backend.

[Qemu-devel] [PATCH 1/3] block: Add blk_get_refcnt()

2015-10-13 Thread Alberto Garcia
This function returns the reference count of a given BlockBackend. For convenience, it returns 0 if the BlockBackend pointer is NULL. Signed-off-by: Alberto Garcia --- block/block-backend.c | 5 + include/sysemu/block-backend.h | 1 + 2 files changed, 6 insertions(+) diff --git a/b