diff options
author | Markus Armbruster <armbru@redhat.com> | 2014-07-09 19:07:31 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2014-07-14 12:03:21 +0200 |
commit | 3c2daac0b98952a858277878cb11294256b39e43 (patch) | |
tree | a76b5e0962f0f1650b7007449b7290777de31597 /block/backup.c | |
parent | 42e38c1fd0199155d32f3464aedce282d3d7f6a1 (diff) |
virtio-blk: Treat read/write beyond end as invalid
The block layer fails such reads and writes just fine. However, they
then get treated like valid operations that fail: the error action
gets executed. Unwanted; reporting the error to the guest is the only
sensible action.
Reject them before passing them to the block layer. This bypasses the
error action and I/O accounting.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/backup.c')
0 files changed, 0 insertions, 0 deletions