qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] block: Flush image after open


From: Christoph Hellwig
Subject: Re: [Qemu-devel] [PATCH] block: Flush image after open
Date: Wed, 9 Mar 2011 18:27:57 +0100
User-agent: Mutt/1.5.17 (2007-11-01)

On Wed, Mar 09, 2011 at 05:15:53PM +0100, Kevin Wolf wrote:
> Quoting the bug report:
> 
>     qemu ensures that guest writes and qemu metadata writes hit the disk
>     when necessary to prevent data corruption. However, if an image was
>     in host pagecache prior to starting qemu, for example after running
>     qemu-img convert, then nothing prevents writes from reaching the
>     disk out of order, potentially causing corruption.
> 
> I'm not entirely sure if there is a realistic case where we would get
> corruption, but it's probably a case of better safe than sorry.

Except for SCSI with ordered tags (which we don't support) there are not
ordering guarantees in the storage protocols, and as such the above explanation
doesn't make any sense at all.




reply via email to

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