block: Make essential BlockDriver objects public
authorMax Reitz <mreitz@redhat.com>
Tue, 2 Dec 2014 17:32:41 +0000 (18:32 +0100)
committerKevin Wolf <kwolf@redhat.com>
Wed, 10 Dec 2014 09:31:19 +0000 (10:31 +0100)
commit5f535a941e52229d81e55603eb69b2bd449b937a
treec400f63b141d383ecb25e546beac3cc5e8e16852
parentb89689f5b2d2686ef83d2be0c854a5ef6e961e13
block: Make essential BlockDriver objects public

There are some block drivers which are essential to QEMU and may not be
removed: These are raw, file and qcow2 (as the default non-raw format).
Make their BlockDriver objects public so they can be directly referenced
throughout the block layer without needing to call bdrv_find_format()
and having to deal with an error at runtime, while the real problem
occurred during linking (where raw, file or qcow2 were not linked into
qemu).

Cc: qemu-stable@nongnu.org
Signed-off-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2.c
block/raw-posix.c
block/raw-win32.c
block/raw_bsd.c
include/block/block_int.h