diff options
author | Max Reitz <mreitz@redhat.com> | 2015-10-19 17:53:27 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2015-10-23 18:18:23 +0200 |
commit | a46fc9c95012f3d7ed2b29b59f042246d62a08d7 (patch) | |
tree | 7710cbe1e5eaeaf6b35fbd43222fd63eb34ec80c /include | |
parent | c09ba36c9ab62e3043041e429205f57ffbe3ba8b (diff) |
block: Prepare remaining BB functions for NULL BDS
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 <mreitz@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions