]> Git Repo - qemu.git/commit
block: don't lose data from last incomplete sector
authorFam Zheng <[email protected]>
Wed, 18 Sep 2013 11:14:14 +0000 (19:14 +0800)
committerStefan Hajnoczi <[email protected]>
Fri, 20 Sep 2013 17:27:26 +0000 (19:27 +0200)
commitbcb9d66e8590151967e1dbe3724eec7ec71392e0
tree1e2d79ec373aa30aade110774e6df3f452d88201
parent0f39ac9a07cc10278e37d87076b143008f28aa3b
block: don't lose data from last incomplete sector

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 <[email protected]>
Signed-off-by: Stefan Hajnoczi <[email protected]>
block.c
This page took 0.025516 seconds and 4 git commands to generate.