commit | bcb9d66e8590151967e1dbe3724eec7ec71392e0 | [log] [tgz] |
---|---|---|
author | Fam Zheng <famz@redhat.com> | Wed Sep 18 19:14:14 2013 +0800 |
committer | Stefan Hajnoczi <stefanha@redhat.com> | Fri Sep 20 19:27:26 2013 +0200 |
tree | 1e2d79ec373aa30aade110774e6df3f452d88201 | |
parent | 0f39ac9a07cc10278e37d87076b143008f28aa3b [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>