diff options
author | 2014-02-12 14:46:24 -0500 | |
---|---|---|
committer | 2014-02-14 18:05:38 +0100 | |
commit | 39a611a3e035e148257af314a522a6cd169c2d0e (patch) | |
tree | 754c96b3c089acd52d67861615c62116becfff47 /util/module.c | |
parent | block: Add notes to iSCSI's .bdrv_open and .bdrv_reopen_prepare (diff) | |
download | qemu-39a611a3e035e148257af314a522a6cd169c2d0e.tar.xz qemu-39a611a3e035e148257af314a522a6cd169c2d0e.zip |
block: Don't throw away errno via error_setg
There are a handful of places in the block layer where a failure path
has a valid -errno value, yet error_setg() is used. Those instances
should instead use error_setg_errno(), to preserve as much error
information as possible.
This patch replaces those instances with error_setg_errno(), so that
errno is passed up the stack in the error message.
Reported-By: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Jeff Cody <jcody@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'util/module.c')
0 files changed, 0 insertions, 0 deletions