]> git.proxmox.com Git - mirror_qemu.git/commit - blockdev.c
block: Decouple block device "commit all" from DriveInfo
authorMarkus Armbruster <armbru@redhat.com>
Wed, 2 Jun 2010 16:55:18 +0000 (18:55 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 15 Jun 2010 07:41:59 +0000 (09:41 +0200)
commit6ab4b5ab8f129df67708be4b58bdf0e13b178548
treef960c0b69f7bda65987c7aafedc14ab2f85ff0cf
parentabd7f68d081ef5adb425f659c7449149987bf89e
block: Decouple block device "commit all" from DriveInfo

do_commit() and mux_proc_byte() iterate over the list of drives
defined with drive_init().  This misses host block devices defined by
other means.  Such means don't exist now, but will be introduced later
in this series.

Change them to use new bdrv_commit_all(), which iterates over all host
block devices.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c
block.h
blockdev.c
qemu-char.c