]> git.proxmox.com Git - pve-qemu-kvm.git/blame - debian/patches/pve/0054-rbd-disable-rbd_cache_writethrough_until_flush-with-.patch
bump version to 2.6.2-2
[pve-qemu-kvm.git] / debian / patches / pve / 0054-rbd-disable-rbd_cache_writethrough_until_flush-with-.patch
CommitLineData
6fb04df7 1From 75eead3024d641e0ff2fa7a901a41781101cf87c Mon Sep 17 00:00:00 2001
6e9e99dd
AD
2From: Alexandre Derumier <aderumier@odiso.com>
3Date: Tue, 26 Jul 2016 16:51:00 +0200
6fb04df7 4Subject: [PATCH 54/55] rbd: disable rbd_cache_writethrough_until_flush with
6e9e99dd
AD
5 cache=unsafe
6
7Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
8---
9 block/rbd.c | 4 ++++
10 1 file changed, 4 insertions(+)
11
12diff --git a/block/rbd.c b/block/rbd.c
13index 5bc5b32..5656028 100644
14--- a/block/rbd.c
15+++ b/block/rbd.c
16@@ -544,6 +544,10 @@ static int qemu_rbd_open(BlockDriverState *bs, QDict *options, int flags,
17 rados_conf_set(s->cluster, "rbd_cache", "true");
18 }
19
20+ if (flags & BDRV_O_NO_FLUSH) {
21+ rados_conf_set(s->cluster, "rbd_cache_writethrough_until_flush", "false");
22+ }
23+
24 r = rados_connect(s->cluster);
25 if (r < 0) {
26 error_setg(errp, "error connecting");
27--
282.1.4
29