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>
Showing
- block.c 23 additions, 7 deletionsblock.c
- block/commit.c 7 additions, 7 deletionsblock/commit.c
- block/mirror.c 6 additions, 1 deletionblock/mirror.c
- block/stream.c 8 additions, 1 deletionblock/stream.c
- block/vvfat.c 1 addition, 1 deletionblock/vvfat.c
- include/block/block.h 2 additions, 1 deletioninclude/block/block.h
Loading
Please register or sign in to comment