qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] bdrv_co_flush_to_disk() don't flush as expected


From: Liu Yuan
Subject: Re: [Qemu-devel] bdrv_co_flush_to_disk() don't flush as expected
Date: Sat, 19 Jan 2013 00:28:31 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2

On 01/18/2013 11:56 PM, Stefan Hajnoczi wrote:
> How are you checking that sd_co_flush_to_disk() is called?  Please
> post the diff.

Okay, this is where I added printf().

Yuan

diff --git a/block/sheepdog.c b/block/sheepdog.c
index 3e49bb8..41edd46 100644
--- a/block/sheepdog.c
+++ b/block/sheepdog.c
@@ -1714,6 +1714,7 @@ static int coroutine_fn
sd_co_flush_to_disk(BlockDriverState *bs)
     AIOReq *aio_req;
     int ret;

+    printf("hello\n");
     if (s->cache_flags != SD_FLAG_CMD_CACHE) {
         return 0;
     }




reply via email to

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