From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:46630) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwEZR-0000PG-FG for qemu-devel@nongnu.org; Fri, 18 Jan 2013 11:13:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TwEZP-0000rv-F9 for qemu-devel@nongnu.org; Fri, 18 Jan 2013 11:13:33 -0500 Received: from mail-pa0-f45.google.com ([209.85.220.45]:34523) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwEZP-0000rW-72 for qemu-devel@nongnu.org; Fri, 18 Jan 2013 11:13:31 -0500 Received: by mail-pa0-f45.google.com with SMTP id bg2so2204843pad.32 for ; Fri, 18 Jan 2013 08:13:30 -0800 (PST) Message-ID: <50F974A1.6030609@gmail.com> Date: Sat, 19 Jan 2013 00:13:21 +0800 From: Liu Yuan MIME-Version: 1.0 References: <50F96D92.6080301@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] bdrv_co_flush_to_disk() don't flush as expected List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Kevin Wolf , Paolo Bonzini , qemu-devel 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. >>From the sheep.log, I can see Jan 19 00:09:39 [main] queue_request(355) FLUSH_VDI, 1 ... This means a flush request is sent from QEMU. I added a printf() in sd_co_flush_to_disk (sheepdog.c) also confirmed that sd_co_flush_to_disk wasn't called until I typed 'poweroff' in the guest. Thanks, Yuan