Re: [Qemu-devel] [PATCH 1/2] block: don't lose data from last incomplete sector

2013-09-20 Thread Stefan Hajnoczi
On Wed, Sep 18, 2013 at 07:14:14PM +0800, Fam Zheng wrote: > To read the last sector that is not aligned to sector boundary, current > code for growable backends, since commit 893a8f6 "block: Produce zeros > when protocols reading beyond end of file", drops the data and directly > returns zeroes. T

[Qemu-devel] [PATCH 1/2] block: don't lose data from last incomplete sector

2013-09-18 Thread Fam Zheng
To read the last sector that is not aligned to sector boundary, current code for growable backends, since commit 893a8f6 "block: Produce zeros when protocols reading beyond end of file", drops the data and directly returns zeroes. That is incorrect. Signed-off-by: Fam Zheng --- block.c | 2 +- 1