]> Git Repo - qemu.git/commit - qemu-nbd.c
nbd: Switch to byte-based block access
authorEric Blake <[email protected]>
Fri, 6 May 2016 16:26:42 +0000 (10:26 -0600)
committerKevin Wolf <[email protected]>
Thu, 12 May 2016 13:22:09 +0000 (15:22 +0200)
commitbd31c214c328bc6a2b2f5567623d964b65c8f44c
tree4ed39b7808622cb546934524f74eee26e41ca89e
parent26a122d3d47205969ca9e4cdba13adc2b2929d8c
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 <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
qemu-nbd.c
This page took 0.025541 seconds and 4 git commands to generate.