block: Make essential BlockDriver objects public
commit7e213f853551c6d528af9f7bddb3ab1b7b03903f
authorMax Reitz <mreitz@redhat.com>
Tue, 2 Dec 2014 17:32:41 +0000 (2 18:32 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Sun, 22 Feb 2015 18:03:18 +0000 (22 12:03 -0600)
tree13618d19f792bbd7b010dff64f33c334d0e994d1
parent45e1611de8be0eae55967694dd6e627c2dc354f2
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>
(cherry picked from commit 5f535a941e52229d81e55603eb69b2bd449b937a)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
block/qcow2.c
block/raw-posix.c
block/raw-win32.c
block/raw_bsd.c
include/block/block_int.h