[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.
This commit is contained in:
Joe Thornber 2013-10-07 09:58:17 +01:00
parent fd7c539a58
commit e7816d2f43

View File

@ -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