OSDN Git Service

block: implement reference count for BlockDriverState
authorFam Zheng <famz@redhat.com>
Fri, 23 Aug 2013 01:14:46 +0000 (09:14 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 6 Sep 2013 13:25:08 +0000 (15:25 +0200)
commit9fcb025146676ab376e6159b58f5a5ddb67bf03c
tree1b642880bf42f0943ae9533b1fa78f933022b183
parent13c91cb7e28b47f5c4227f7e88a1378570117704
block: implement reference count for BlockDriverState

Introduce bdrv_ref/bdrv_unref to manage the lifecycle of
BlockDriverState. They are unused for now but will used to replace
bdrv_delete() later.

Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block.c
include/block/block.h
include/block/block_int.h