qemu-devel
[Top][All Lists]
Advanced

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

[PATCH V3 3/6] block/rbd: update s->image_size in qemu_rbd_getlength


From: Peter Lieven
Subject: [PATCH V3 3/6] block/rbd: update s->image_size in qemu_rbd_getlength
Date: Wed, 19 May 2021 16:23:56 +0200

in case the image size changed we should adjust our internally stored size as 
well.

Signed-off-by: Peter Lieven <pl@kamp.de>
---
 block/rbd.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/block/rbd.c b/block/rbd.c
index b4caea4f1b..97a2ae4c84 100644
--- a/block/rbd.c
+++ b/block/rbd.c
@@ -976,6 +976,7 @@ static int64_t qemu_rbd_getlength(BlockDriverState *bs)
         return r;
     }
 
+    s->image_size = info.size;
     return info.size;
 }
 
-- 
2.17.1





reply via email to

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