[pve-devel] [PATCH pve-qemu-kvm] Force enable rbd cache for qmrestore v2

Eneko Lacunza elacunza at binovo.es
Tue Jul 26 13:29:11 CEST 2016


Hi,

I just tested this patch to work as well as the previous one. Instead of 
setting rbd_cache_writethrough_until_flush=false in devfn, issue a bogus 
flush so that Ceph activated rbd cache.

---
Index: b/vma.c
===================================================================
--- a/vma.c
+++ b/vma.c
@@ -335,6 +335,9 @@ static int extract_content(int argc, cha

             BlockDriverState *bs = blk_bs(blk);

+            /* This is needed to activate rbd cache (writeback/coalesce) */
+            bdrv_flush(bs);
+
              if (vma_reader_register_bs(vmar, i, bs, write_zero, &errp) 
< 0) {
                  g_error("%s", error_get_pretty(errp));
              }


-- 
Zuzendari Teknikoa / Director Técnico
Binovo IT Human Project, S.L.
Telf. 943493611
       943324914
Astigarraga bidea 2, planta 6 dcha., ofi. 3-2; 20180 Oiartzun (Gipuzkoa)
www.binovo.es



More information about the pve-devel mailing list