diff options
author | Markus Armbruster <armbru@redhat.com> | 2010-06-02 18:55:18 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2010-06-15 09:41:59 +0200 |
commit | 6ab4b5ab8f129df67708be4b58bdf0e13b178548 (patch) | |
tree | f960c0b69f7bda65987c7aafedc14ab2f85ff0cf /block.c | |
parent | abd7f68d081ef5adb425f659c7449149987bf89e (diff) | |
download | qemu-6ab4b5ab8f129df67708be4b58bdf0e13b178548.zip qemu-6ab4b5ab8f129df67708be4b58bdf0e13b178548.tar.gz qemu-6ab4b5ab8f129df67708be4b58bdf0e13b178548.tar.bz2 |
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>
Diffstat (limited to 'block.c')
-rw-r--r-- | block.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -788,6 +788,15 @@ ro_cleanup: return ret; } +void bdrv_commit_all(void) +{ + BlockDriverState *bs; + + QTAILQ_FOREACH(bs, &bdrv_states, list) { + bdrv_commit(bs); + } +} + /* * Return values: * 0 - success |