From: Jason Dillaman Date: Sun, 7 Sep 2014 08:59:54 +0000 (-0400) Subject: rbd should use write-back when caching is enabled X-Git-Tag: v0.86~103^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F2433%2Fhead;p=ceph.git rbd should use write-back when caching is enabled librbd now defaults to write-through until the first flush is received. For rbd, force the use of write-through. Signed-off-by: Jason Dillaman --- diff --git a/src/rbd.cc b/src/rbd.cc index fb2d8fa09928..de42c5eb9600 100644 --- a/src/rbd.cc +++ b/src/rbd.cc @@ -2192,6 +2192,8 @@ if (!set_conf_param(v, p1, p2, p3)) { \ } } + g_conf->set_val_or_die("rbd_cache_writethrough_until_flush", "false"); + /* get defaults from rbd_default_* options to keep behavior consistent with manual short-form options */ if (!format_specified)