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

Dietmar Maurer dietmar at proxmox.com
Tue Jul 26 13:15:16 CEST 2016


> Index: b/vma.c
> ===================================================================
> --- a/vma.c
> +++ b/vma.c
> @@ -328,6 +328,12 @@ static int extract_content(int argc, cha
>              }
> 
> 
> +            /* Force rbd cache */
> +            if (0 == strncmp(devfn, "rbd:", strlen("rbd:"))) {
> +                char *devfn_new = 
> g_strdup_printf("%s:rbd_cache_writethrough_until_flush=false", devfn);


Would it be enough to do a single

  bdrv_flush(bs) 

after blk_new_open() ?



More information about the pve-devel mailing list