nbd: Use BlockBackend internally
commitaadf99a792be864c8feb1cc61e2c8fd225fa7c01
authorMax Reitz <mreitz@redhat.com>
Tue, 18 Nov 2014 11:21:18 +0000 (18 12:21 +0100)
committerKevin Wolf <kwolf@redhat.com>
Wed, 10 Dec 2014 09:31:12 +0000 (10 10:31 +0100)
treeba97adf470f6ec5af31e77d0b54bf5ba9ed248ed
parente140177d9cd067050004be6f725c3a0750ccdd94
nbd: Use BlockBackend internally

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 <mreitz@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 1416309679-333-6-git-send-email-mreitz@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
nbd.c