summaryrefslogtreecommitdiffstats
path: root/include/block/nbd.h
diff options
context:
space:
mode:
authorEric Blake2016-07-16 01:23:07 +0200
committerStefan Hajnoczi2016-07-20 15:24:25 +0200
commit70c4fb2648f31fcfd69296dd4f2b1b664572270f (patch)
treecbde0bb66c05e9d2ccf9521ea1e092d182538e76 /include/block/nbd.h
parentblock: Kill .bdrv_co_discard() (diff)
downloadqemu-70c4fb2648f31fcfd69296dd4f2b1b664572270f.tar.gz
qemu-70c4fb2648f31fcfd69296dd4f2b1b664572270f.tar.xz
qemu-70c4fb2648f31fcfd69296dd4f2b1b664572270f.zip
nbd: Convert to byte-based interface
The NBD protocol doesn't have any notion of sectors, so it is a fairly easy conversion to use byte-based read and write. Signed-off-by: Eric Blake <eblake@redhat.com> Acked-by: Paolo Bonzini <pbonzini@redhat.com> Message-id: 1468624988-423-19-git-send-email-eblake@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include/block/nbd.h')
-rw-r--r--include/block/nbd.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/block/nbd.h b/include/block/nbd.h
index 503f514e85..cb91820f38 100644
--- a/include/block/nbd.h
+++ b/include/block/nbd.h
@@ -77,7 +77,6 @@ enum {
/* Maximum size of a single READ/WRITE data buffer */
#define NBD_MAX_BUFFER_SIZE (32 * 1024 * 1024)
-#define NBD_MAX_SECTORS (NBD_MAX_BUFFER_SIZE / BDRV_SECTOR_SIZE)
/* Maximum size of an export name. The NBD spec requires 256 and
* suggests that servers support up to 4096, but we stick to only the