]> git.ipfire.org Git - thirdparty/qemu.git/commit
block: Add return value for bdrv_flush_all()
authorKevin Wolf <kwolf@redhat.com>
Fri, 5 Jul 2013 11:48:01 +0000 (13:48 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 13 Aug 2013 14:30:49 +0000 (09:30 -0500)
commitf8238453095565838c697ef2df38d291fe4e147a
tree7d92709edd05da6470b8b5df9a8e78372914c617
parent7fbd2301a4b40d457fd5905733fff70c7115362b
block: Add return value for bdrv_flush_all()

bdrv_flush() can fail, and bdrv_flush_all() should return an error as
well if this happens for a block device. It returns the first error
return now, but still at least tries to flush the remaining devices even
in error cases.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
(cherry picked from commit f0f0fdfeec6c67ad374114ecc4b3e3ccde5e94d2)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
block.c
include/block/block.h