Re: [Qemu-devel] [PATCH 5/5] nbd: Use BlockBackend internally

2014-11-18 Thread Max Reitz
On 2014-11-17 at 18:29, Paolo Bonzini wrote: On 17/11/2014 16:30, Max Reitz wrote: With all externally visible functions changed to use BlockBackend, this patch makes nbd use BlockBackend for everything internally as well. While touching them, substitute 512 by BDRV_SECTOR_SIZE in the calls to

Re: [Qemu-devel] [PATCH 5/5] nbd: Use BlockBackend internally

2014-11-17 Thread Paolo Bonzini
On 17/11/2014 16:30, Max Reitz wrote: > With all externally visible functions changed to use BlockBackend, this > patch makes nbd use BlockBackend for everything internally as well. > > While touching them, substitute 512 by BDRV_SECTOR_SIZE in the calls to > blk_read(), blk_write() and blk_co_d

[Qemu-devel] [PATCH 5/5] nbd: Use BlockBackend internally

2014-11-17 Thread Max Reitz
With all externally visible functions changed to use BlockBackend, this patch makes nbd use BlockBackend for everything internally as well. While touching them, substitute 512 by BDRV_SECTOR_SIZE in the calls to blk_read(), blk_write() and blk_co_discard(). Signed-off-by: Max Reitz --- nbd.c |