qemu-block
[Top][All Lists]
Advanced

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

[Qemu-block] [PATCH v4 08/15] qcow2: set inactive flag


From: Anton Nefedov
Subject: [Qemu-block] [PATCH v4 08/15] qcow2: set inactive flag
Date: Tue, 1 Aug 2017 17:19:05 +0300

Qcow2State and BlockDriverState flags have to be in sync

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

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




reply via email to

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