qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] raw-win32: Fix bdrv_flush return value


From: Kevin Wolf
Subject: [Qemu-devel] [PATCH] raw-win32: Fix bdrv_flush return value
Date: Fri, 28 Jan 2011 16:04:14 +0100

Reported-by: TeLeMan <address@hidden>
Signed-off-by: Kevin Wolf <address@hidden>
---

Hi TeLeMan,

this seems to be the bug that was exposed by the recent qcow2 cache changes.
Can you give it a try on a real Windows setup? I have tested it only on Wine so
far.

Kevin


 block/raw-win32.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/block/raw-win32.c b/block/raw-win32.c
index 06c9710..c204a80 100644
--- a/block/raw-win32.c
+++ b/block/raw-win32.c
@@ -153,7 +153,7 @@ static int raw_flush(BlockDriverState *bs)
     int ret;
 
     ret = FlushFileBuffers(s->hfile);
-    if (ret != 0) {
+    if (ret == 0) {
         return -EIO;
     }
 
-- 
1.7.2.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]