Re: [Qemu-devel] [PATCH for-2.9 0/3] Fix bdrv_is_allocated usage bugs

2017-03-09 Thread Kevin Wolf
Am 08.03.2017 um 22:34 hat Eric Blake geschrieben: > bdrv_is_allocated() returns tri-state, not just bool, although > there were several callers using it as a bool. Fix them to > either propagate the error or to document why treatment of > failure like allocation is okay. > > [Found during a larg

[Qemu-devel] [PATCH for-2.9 0/3] Fix bdrv_is_allocated usage bugs

2017-03-08 Thread Eric Blake
bdrv_is_allocated() returns tri-state, not just bool, although there were several callers using it as a bool. Fix them to either propagate the error or to document why treatment of failure like allocation is okay. [Found during a larger effort to convert bdrv_get_block_status to be byte-based for