diff options
| author | Eric Blake | 2016-05-06 18:26:42 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2016-05-12 15:22:09 +0200 |
| commit | bd31c214c328bc6a2b2f5567623d964b65c8f44c (patch) | |
| tree | 4ed39b7808622cb546934524f74eee26e41ca89e /include | |
| parent | atapi: Switch to byte-based block access (diff) | |
| download | qemu-bd31c214c328bc6a2b2f5567623d964b65c8f44c.tar.gz qemu-bd31c214c328bc6a2b2f5567623d964b65c8f44c.tar.xz qemu-bd31c214c328bc6a2b2f5567623d964b65c8f44c.zip | |
nbd: Switch to byte-based block access
Sector-based blk_read() should die; switch to byte-based
blk_pread() instead.
Add a constant for our magic number 512, to make it obvious
that this size will NOT change even if BDRV_SECTOR_SIZE does,
even though the two happen to be the same for now. Split
assignments from conditionals to keep checkpatch.pl happy.
Signed-off-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
