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

Reply via email to