]> git.proxmox.com Git - qemu.git/commit - block.c
block: Split bdrv_open
authorKevin Wolf <kwolf@redhat.com>
Mon, 12 Apr 2010 14:37:13 +0000 (16:37 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 3 May 2010 08:07:30 +0000 (10:07 +0200)
commitb6ce07aa83bdee3cfd2610f270a0ce304e78df95
tree193fb240fd386041990b77e5e15cb0e88227619a
parent84a12e6648444f517055138a7d7f25a22d7e1029
block: Split bdrv_open

bdrv_open contains quite some code that is only useful for opening images (as
opposed to opening files by a protocol), for example snapshots.

This patch splits the code so that we have bdrv_open_file() for files (uses
protocols), bdrv_open() for images (uses format drivers) and bdrv_open_common()
for the code common for opening both images and files.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c