Re: [Qemu-block] [PATCH v5 20/38] block: Prepare remaining BB functions for NULL BDS

2015-09-22 Thread Kevin Wolf
Am 18.09.2015 um 17:22 hat Max Reitz geschrieben: > There are several BlockBackend functions which, in theory, cannot fail. > This patch makes them cope with the BlockDriverState pointer being NULL > by making them fall back to some default action like ignoring the value > in setters and returning

[Qemu-block] [PATCH v5 20/38] block: Prepare remaining BB functions for NULL BDS

2015-09-18 Thread Max Reitz
There are several BlockBackend functions which, in theory, cannot fail. This patch makes them cope with the BlockDriverState pointer being NULL by making them fall back to some default action like ignoring the value in setters and returning the default in getters. Signed-off-by: Max Reitz