]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd should use write-back when caching is enabled 2433/head
authorJason Dillaman <dillaman@redhat.com>
Sun, 7 Sep 2014 08:59:54 +0000 (04:59 -0400)
committerJason Dillaman <dillaman@redhat.com>
Sun, 7 Sep 2014 08:59:54 +0000 (04:59 -0400)
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 <dillaman@redhat.com>
src/rbd.cc

index fb2d8fa099286508251ebd1434bf65eccd270582..de42c5eb960074f7ef71a4af52e42874f8fc243d 100644 (file)
@@ -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)