Re: [Qemu-devel] [PATCH V7 02/14] block: add bdrv_can_read_snapshot() function

2013-02-28 Thread Wenchao Xia
于 2013-2-28 23:20, Stefan Hajnoczi 写道: On Tue, Feb 26, 2013 at 06:40:16PM +0800, Wenchao Xia wrote: Compared to bdrv_can_snapshot(), this function return whether bs* is ready to read snapshot info from instead of write. If yes, caller can then query snapshot information, but taking snapshot i

Re: [Qemu-devel] [PATCH V7 02/14] block: add bdrv_can_read_snapshot() function

2013-02-28 Thread Stefan Hajnoczi
On Tue, Feb 26, 2013 at 06:40:16PM +0800, Wenchao Xia wrote: > Compared to bdrv_can_snapshot(), this function return whether > bs* is ready to read snapshot info from instead of write. If yes, > caller can then query snapshot information, but taking snapshot > is not always possible for that *bs

Re: [Qemu-devel] [PATCH V7 02/14] block: add bdrv_can_read_snapshot() function

2013-02-27 Thread Wenchao Xia
于 2013-2-27 21:58, Markus Armbruster 写道: > Wenchao Xia writes: > >>Compared to bdrv_can_snapshot(), this function return whether >> bs* is ready to read snapshot info from instead of write. If yes, >> caller can then query snapshot information, but taking snapshot >> is not always possible fo

Re: [Qemu-devel] [PATCH V7 02/14] block: add bdrv_can_read_snapshot() function

2013-02-27 Thread Markus Armbruster
Wenchao Xia writes: > Compared to bdrv_can_snapshot(), this function return whether > bs* is ready to read snapshot info from instead of write. If yes, > caller can then query snapshot information, but taking snapshot > is not always possible for that *bs may be read only. > > Signed-off-by: We

[Qemu-devel] [PATCH V7 02/14] block: add bdrv_can_read_snapshot() function

2013-02-26 Thread Wenchao Xia
Compared to bdrv_can_snapshot(), this function return whether bs* is ready to read snapshot info from instead of write. If yes, caller can then query snapshot information, but taking snapshot is not always possible for that *bs may be read only. Signed-off-by: Wenchao Xia Reviewed-by: Eric Blak