]> git.ipfire.org Git - thirdparty/qemu.git/commit
block: Make essential BlockDriver objects public
authorMax Reitz <mreitz@redhat.com>
Tue, 2 Dec 2014 17:32:41 +0000 (18:32 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 7 Jan 2015 21:07:12 +0000 (15:07 -0600)
commitcdeb85cf241fccd7995e5c62b8cee7bb23dcac86
tree82f1ee6653f5dbeeeeab23684221fc3076910dcb
parentb28d7b585a2f58b5eaee523aad1b15713b212031
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