nbd: Switch .bdrv_co_discard() to byte-based
commit447e57c3b056c310463238268d514798b23c376f
authorEric Blake <eblake@redhat.com>
Fri, 15 Jul 2016 23:23:02 +0000 (15 17:23 -0600)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 20 Jul 2016 13:24:25 +0000 (20 14:24 +0100)
tree39862b70579c97d2b212eeb10db8bc04f34c8d84
parent97c7e85cfea4f4edc1536c50ca2f3c1627d8e443
nbd: Switch .bdrv_co_discard() to byte-based

Another step towards killing off sector-based block APIs.

While at it, call directly into nbd-client.c instead of having
a pointless trivial wrapper in nbd.c.

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 1468624988-423-14-git-send-email-eblake@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/nbd-client.c
block/nbd-client.h
block/nbd.c