qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v2 06/16] block: do not parse BDRV_O_CACHE_WB in


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH v2 06/16] block: do not parse BDRV_O_CACHE_WB in raw block drivers
Date: Thu, 13 Sep 2012 20:56:51 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120828 Thunderbird/15.0

Il 13/09/2012 19:17, Jeff Cody ha scritto:
>> > 
>> > Why does this matter?  If raw-posix was opened directly (i.e. without
>> > the bs->file indirection) this would cause a writethrough file to be
>> > incorrectly opened as writeback.
>> > 
>> > Paolo
>> > 
> The problem this patch was trying to work around is that
> bdrv_open_common() forces BDRV_O_CACHE_WB (commit e1e9b0ac), but that
> setting is not preserved in bs->open_flags, so it is lost on a reopen.

Perhaps we _should_ preserve that in bs->open_flags, while still using
the initial value of BDRV_O_CACHE_WB to initialize bs->enable_write_cache.

> Is there a scenario currently that has raw-posix opened directly as a
> writethrough file, or were you more concerned with future use?

Not for raw-posix, but IIRC some other protocol is opened directly
without a format on top.  rbd perhaps?  I'm concerned of having to work
around what seems like a bug elsewhere, in multiple protocols.

Paolo



reply via email to

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