[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH 1/4] block: clarify the meaning of BDRV_O_NOCACH
From: |
Christoph Hellwig |
Subject: |
[Qemu-devel] Re: [PATCH 1/4] block: clarify the meaning of BDRV_O_NOCACHE |
Date: |
Wed, 16 Mar 2011 15:08:44 +0100 |
User-agent: |
Mutt/1.5.17 (2007-11-01) |
On Wed, Mar 16, 2011 at 09:42:37AM +0000, Stefan Hajnoczi wrote:
> - writethrough = ((flags & BDRV_O_CACHE_MASK) == 0);
> + writethrough = ((flags & (BDRV_O_CACHE_WB | BDRV_O_NO_FLUSH)) == 0);
or rather
writethrough = ((flags & (BDRV_O_CACHE_WB) != );
but yes, this code had sneaked in since my initial version.
[Qemu-devel] [PATCH 2/4] block: add a helper to change writeback mode on the fly, Christoph Hellwig, 2011/03/15