[Qemu-devel] [PATCH v2 07/15] qcow2: set inactive flag

Anton Nefedov posted 15 patches 8 years, 8 months ago
There is a newer version of this series
[Qemu-devel] [PATCH v2 07/15] qcow2: set inactive flag
Posted by Anton Nefedov 8 years, 8 months ago
Qcow2State and BlockDriverState flags have to be in sync

Signed-off-by: Anton Nefedov <anton.nefedov@virtuozzo.com>
---
 block/qcow2.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/block/qcow2.c b/block/qcow2.c
index c6fb714..b090833 100644
--- a/block/qcow2.c
+++ b/block/qcow2.c
@@ -1932,6 +1932,7 @@ static int qcow2_inactivate(BlockDriverState *bs)
 
     if (result == 0) {
         qcow2_mark_clean(bs);
+        s->flags |= BDRV_O_INACTIVE;
     }
 
     return result;
-- 
2.7.4