commit | 12fa4af61fb2a08b156134c3b6717534c637c995 | [log] [tgz] |
---|---|---|
author | Kevin Wolf <kwolf@redhat.com> | Fri Feb 17 20:42:32 2017 +0100 |
committer | Kevin Wolf <kwolf@redhat.com> | Tue Feb 28 20:47:51 2017 +0100 |
tree | bd93d226c7af3454aa64b64bdb771b8fc5d22083 | |
parent | c8f6d58edb0defbe1e90d44419ec8ec6d711c341 [diff] |
block: Add Error parameter to bdrv_set_backing_hd() Not all callers of bdrv_set_backing_hd() know for sure that attaching the backing file will be allowed by the permission system. Return the error from the function rather than aborting. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Acked-by: Fam Zheng <famz@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com>