diff options
author | Kevin Wolf <kwolf@redhat.com> | 2010-10-21 16:43:43 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2010-11-04 12:52:16 +0100 |
commit | 205ef7961f781496366e0a93a4ec621ad3724bd7 (patch) | |
tree | 7c1861837185ba98074140dba8f03e65941c8c8c /block/blkdebug.c | |
parent | 5dba48a882c126ccc86db6506cfa6dcca97badab (diff) | |
download | qemu-205ef7961f781496366e0a93a4ec621ad3724bd7.zip qemu-205ef7961f781496366e0a93a4ec621ad3724bd7.tar.gz qemu-205ef7961f781496366e0a93a4ec621ad3724bd7.tar.bz2 |
block: Allow bdrv_flush to return errors
This changes bdrv_flush to return 0 on success and -errno in case of failure.
It's a requirement for implementing proper error handle in users of bdrv_flush.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'block/blkdebug.c')
-rw-r--r-- | block/blkdebug.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block/blkdebug.c b/block/blkdebug.c index 4d6ff0a..cd9eb80 100644 --- a/block/blkdebug.c +++ b/block/blkdebug.c @@ -397,9 +397,9 @@ static void blkdebug_close(BlockDriverState *bs) } } -static void blkdebug_flush(BlockDriverState *bs) +static int blkdebug_flush(BlockDriverState *bs) { - bdrv_flush(bs->file); + return bdrv_flush(bs->file); } static BlockDriverAIOCB *blkdebug_aio_flush(BlockDriverState *bs, |