aboutsummaryrefslogtreecommitdiff
path: root/blockdev.c
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2013-09-18 19:14:14 +0800
committerStefan Hajnoczi <stefanha@redhat.com>2013-09-20 19:27:26 +0200
commitbcb9d66e8590151967e1dbe3724eec7ec71392e0 (patch)
tree1e2d79ec373aa30aade110774e6df3f452d88201 /blockdev.c
parent0f39ac9a07cc10278e37d87076b143008f28aa3b (diff)
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 <famz@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'blockdev.c')
0 files changed, 0 insertions, 0 deletions