From e7816d2f4336e2a1f2d6e4b4d8e6e8af999fd243 Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Mon, 7 Oct 2013 09:58:17 +0100 Subject: [PATCH] [block] Open block files with O_DIRECT | O_SYNC. Putting this back in. Dumping metadata snapshots fails without. So there's more caching in the kernel than I expected. --- persistent-data/block.tcc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/persistent-data/block.tcc b/persistent-data/block.tcc index 36e872d..09cd313 100644 --- a/persistent-data/block.tcc +++ b/persistent-data/block.tcc @@ -38,8 +38,8 @@ namespace { int const DEFAULT_MODE = 0666; - // FIXME: these will slow it down until we start doing asyn io. O_DIRECT | O_SYNC; - int const OPEN_FLAGS = 0; + // FIXME: these will slow it down until we start doing async io. + int const OPEN_FLAGS = O_DIRECT | O_SYNC; // FIXME: introduce a new exception for this, or at least lift this // to exception.h