[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 01/11] block: Use writeback in .bdrv_create() im
From: |
Kevin Wolf |
Subject: |
Re: [Qemu-devel] [PATCH 01/11] block: Use writeback in .bdrv_create() implementations |
Date: |
Wed, 9 Mar 2016 13:27:09 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Am 09.03.2016 um 13:14 hat Paolo Bonzini geschrieben:
>
>
> On 08/03/2016 17:34, Kevin Wolf wrote:
> > There's no reason to use a writethrough cache mode while creating an
> > image.
>
> There's no reason to do flushes in fact, so you could use
> BDRV_O_NO_FLUSH too. :)
That's true. On the other hand, we don't issue flushes anyway, so
there's little reason to ignore non-existing flushes. :-)
The only part where it might make sense is where image formats don't
open the raw image file, but actually open the image with themselves and
allocate things. qcow2 at least already sets BDRV_O_NO_FLUSH for that
part.
In fact, the only bdrv_open() touched in this patch that doesn't have
BDRV_O_PROTOCOL set, is one instance in VMDK where it opens the backing
file to read some ID from the header. So no flush involved there.
Kevin
- [Qemu-devel] [PATCH 05/11] qcow2: Use BB functions in .bdrv_create(), (continued)
- [Qemu-devel] [PATCH 05/11] qcow2: Use BB functions in .bdrv_create(), Kevin Wolf, 2016/03/08
- [Qemu-devel] [PATCH 04/11] qcow: Use BB functions in .bdrv_create(), Kevin Wolf, 2016/03/08
- [Qemu-devel] [PATCH 02/11] block: Introduce blk_set_allow_write_beyond_eof(), Kevin Wolf, 2016/03/08
- [Qemu-devel] [PATCH 07/11] sheepdog: Use BB functions in .bdrv_create(), Kevin Wolf, 2016/03/08
- [Qemu-devel] [PATCH 03/11] parallels: Use BB functions in .bdrv_create(), Kevin Wolf, 2016/03/08
- [Qemu-devel] [PATCH 08/11] vdi: Use BB functions in .bdrv_create(), Kevin Wolf, 2016/03/08
- [Qemu-devel] [PATCH 09/11] vhdx: Use BB functions in .bdrv_create(), Kevin Wolf, 2016/03/08
- [Qemu-devel] [PATCH 06/11] qed: Use BB functions in .bdrv_create(), Kevin Wolf, 2016/03/08
- [Qemu-devel] [PATCH 01/11] block: Use writeback in .bdrv_create() implementations, Kevin Wolf, 2016/03/08
- [Qemu-devel] [PATCH 11/11] vpc: Use BB functions in .bdrv_create(), Kevin Wolf, 2016/03/08
- [Qemu-devel] [PATCH 10/11] vmdk: Use BB functions in .bdrv_create(), Kevin Wolf, 2016/03/08
- Re: [Qemu-devel] [PATCH 00/11] block: Use BB function in .bdrv_create() implementations, Kevin Wolf, 2016/03/14