Re: [Qemu-devel] [PATCH v2 02/11] block: Add op blocker notifier list

2015-05-13 Thread Fam Zheng
On Wed, 05/13 17:28, Fam Zheng wrote: > +static void bdrv_op_blocker_notify(BlockDriverState *bs, BlockOpType op, > + Error *reason, bool blocking) > +{ > +BlockOpEvent event = (BlockOpEvent) { > +op = op, > +reason = reason, > +blocking

[Qemu-devel] [PATCH v2 02/11] block: Add op blocker notifier list

2015-05-13 Thread Fam Zheng
BDS users can register a notifier and get notified about op blocker changes. Signed-off-by: Fam Zheng --- block.c | 28 include/block/block.h | 8 include/block/block_int.h | 3 +++ 3 files changed, 39 insertions(+) diff --git a/bloc