[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC PATCH 11/14] allow writing to the backing file
From: |
Wen Congyang |
Subject: |
[Qemu-devel] [RFC PATCH 11/14] allow writing to the backing file |
Date: |
Thu, 12 Feb 2015 11:07:15 +0800 |
Signed-off-by: Wen Congyang <address@hidden>
Signed-off-by: zhanghailiang <address@hidden>
Signed-off-by: Gonglei <address@hidden>
---
block.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/block.c b/block.c
index 067c44b..96cf973 100644
--- a/block.c
+++ b/block.c
@@ -856,8 +856,8 @@ static int bdrv_inherited_flags(int flags)
*/
static int bdrv_backing_flags(int flags)
{
- /* backing files always opened read-only */
- flags &= ~(BDRV_O_RDWR | BDRV_O_COPY_ON_READ);
+ /* backing files are opened read-write for block replication */
+ flags &= ~BDRV_O_COPY_ON_READ;
/* snapshot=on is handled on the top layer */
flags &= ~(BDRV_O_SNAPSHOT | BDRV_O_TEMPORARY);
--
2.1.0
- Re: [Qemu-devel] [RFC PATCH 06/14] NBD client: connect to nbd server later, (continued)
[Qemu-devel] [RFC PATCH 09/14] block: give backing image its own BlockBackend, Wen Congyang, 2015/02/11
[Qemu-devel] [RFC PATCH 07/14] NBD client: implement block driver interfaces for block replication, Wen Congyang, 2015/02/11
[Qemu-devel] [RFC PATCH 10/14] allow the backing image access the origin BlockDriverState, Wen Congyang, 2015/02/11
[Qemu-devel] [RFC PATCH 11/14] allow writing to the backing file,
Wen Congyang <=
[Qemu-devel] [RFC PATCH 13/14] COW: move cow interfaces to a seperate file, Wen Congyang, 2015/02/11
[Qemu-devel] [RFC PATCH 08/14] block: add a new API to create a hidden BlockBackend, Wen Congyang, 2015/02/11
[Qemu-devel] [RFC PATCH 12/14] Add disk buffer for block replication, Wen Congyang, 2015/02/11
[Qemu-devel] [RFC PATCH 14/14] COLO: implement a new block driver, Wen Congyang, 2015/02/11
Re: [Qemu-devel] [RFC PATCH 00/14] Block replication for continuous checkpoints, Paolo Bonzini, 2015/02/18