diff options
author | Eric Blake <eblake@redhat.com> | 2016-05-06 10:26:39 -0600 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2016-05-12 15:22:09 +0200 |
commit | 12c125cba9c548929ccf4da2515e5b795c94afd9 (patch) | |
tree | a16035e904e71cac0de092b939fd60c10e6d2a1c /HACKING | |
parent | 098e732dbeb9d1f191da6fd6d0ddb66909690302 (diff) | |
download | qemu-12c125cba9c548929ccf4da2515e5b795c94afd9.zip qemu-12c125cba9c548929ccf4da2515e5b795c94afd9.tar.gz qemu-12c125cba9c548929ccf4da2515e5b795c94afd9.tar.bz2 |
sd: Switch to byte-based block access
Sector-based blk_write() should die; switch to byte-based
blk_pwrite() instead. Likewise for blk_read().
Greatly simplifies the code, now that we let the block layer
take care of alignment and read-modify-write on our behalf :)
In fact, we no longer need to include 'buf' in the migration
stream (although we do have to ensure that the stream remains
compatible).
Signed-off-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'HACKING')
0 files changed, 0 insertions, 0 deletions