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

Eneko Lacunza elacunza at binovo.es
Tue Jul 26 13:16:30 CEST 2016


El 26/07/16 a las 13:15, Dietmar Maurer escribió:
>> 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() ?
>
>
Yes.


-- 
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