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.