Re: [Qemu-devel] [PATCH v4 06/14] sd: Switch to byte-based block access

2016-05-02 Thread Kevin Wolf
Am 29.04.2016 um 22:08 hat Eric Blake geschrieben: > 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 :) > > Sig

[Qemu-devel] [PATCH v4 06/14] sd: Switch to byte-based block access

2016-04-29 Thread Eric Blake
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 :) Signed-off-by: Eric Blake --- hw/sd/sd.c | 46 +++-