X-Git-Url: https://git.proxmox.com/?p=pve-qemu-kvm.git;a=blobdiff_plain;f=debian%2Fpatches%2Fpve%2F0039-rbd-disable-rbd_cache_writethrough_until_flush-with-.patch;fp=debian%2Fpatches%2Fpve%2F0039-rbd-disable-rbd_cache_writethrough_until_flush-with-.patch;h=0000000000000000000000000000000000000000;hp=0f1a65ea46ddda078eb6217fcf832fcdd3340141;hb=e8d0924679a5d7a3acfc128a1140ffdef0269338;hpb=dcfd9c72bc5bb92f7715f7eb52e6610bc629a1c8 diff --git a/debian/patches/pve/0039-rbd-disable-rbd_cache_writethrough_until_flush-with-.patch b/debian/patches/pve/0039-rbd-disable-rbd_cache_writethrough_until_flush-with-.patch deleted file mode 100644 index 0f1a65e..0000000 --- a/debian/patches/pve/0039-rbd-disable-rbd_cache_writethrough_until_flush-with-.patch +++ /dev/null @@ -1,29 +0,0 @@ -From 0dd047c39e7821c8e31f9133be12bc9be61c045c Mon Sep 17 00:00:00 2001 -From: Alexandre Derumier -Date: Tue, 26 Jul 2016 16:51:00 +0200 -Subject: [PATCH 39/48] rbd: disable rbd_cache_writethrough_until_flush with - cache=unsafe - -Signed-off-by: Alexandre Derumier ---- - block/rbd.c | 4 ++++ - 1 file changed, 4 insertions(+) - -diff --git a/block/rbd.c b/block/rbd.c -index 498322b..e9c02c6 100644 ---- a/block/rbd.c -+++ b/block/rbd.c -@@ -616,6 +616,10 @@ static int qemu_rbd_open(BlockDriverState *bs, QDict *options, int flags, - rados_conf_set(s->cluster, "rbd_cache", "true"); - } - -+ if (flags & BDRV_O_NO_FLUSH) { -+ rados_conf_set(s->cluster, "rbd_cache_writethrough_until_flush", "false"); -+ } -+ - r = rados_connect(s->cluster); - if (r < 0) { - error_setg_errno(errp, -r, "error connecting"); --- -2.1.4 -