[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 02:06:11 +0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 |
On 01/18/2013 11:43 PM, Liu Yuan wrote:
> # start up the guest
> $ qemu-system-x86_64 --enable-kvm -drive
> file=~/images/test1,if=virtio,cache=writeback -smp 2 -cpu host -m 1024
> -drive file=sheepdog:test,if=virtio,cache=writeback
> # write to the /dev/vdb of the guest
> # sudo dd if=/dev/urandom of=/dev/vdb bs=4M count=1 oflag=direct,sync
>
> This doesn't trigger flush for vdb device. I also write a small program
> to call fsync(2) to the device, no flush neither.
>
> Only the poweroff of the guest will trigger the flush request for vdb.
> So is this expected behavior and I am missing something?
Oops, it is something wrong in the Guest. I created a new guest and it
works like a charm. Sorry for the false alarm.
Thanks,
Yuan